forked from gooberinc/goober
Improved updater
This commit is contained in:
parent
2c3946b67d
commit
991264620a
2 changed files with 2 additions and 4 deletions
|
@ -13,7 +13,7 @@ import psutil
|
|||
import cpuinfo
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
import updater
|
||||
|
||||
settings = settings_manager.settings
|
||||
|
||||
|
@ -183,7 +183,7 @@ class BaseCommands(commands.Cog):
|
|||
@commands.command()
|
||||
async def force_update(self, ctx: commands.Context):
|
||||
await ctx.send("Forcefully updating...")
|
||||
subprocess.run([sys.executable, sys.executable, "updater.py"])
|
||||
updater.force_update()
|
||||
os.execv(sys.executable, [sys.executable] + sys.argv)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue