mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-08 21:15:46 +08:00
🐛 补充重启命令
This commit is contained in:
parent
1a8435277f
commit
e4c7bb8900
@ -34,7 +34,7 @@ def get_restart_command():
|
||||
|
||||
|
||||
async def get_restart_sh() -> str:
|
||||
args = f'{restart_command} {str(bot_start.absolute())}'
|
||||
args = f'{get_restart_command()} {str(bot_start.absolute())}'
|
||||
return _restart_sh.format(str(bot_start.absolute()), args)
|
||||
|
||||
|
||||
@ -68,12 +68,12 @@ async def restart_genshinuid(
|
||||
json.dump(update_log, f)
|
||||
if platform.system() == 'Linux':
|
||||
subprocess.Popen(
|
||||
f'kill -9 {pid} & {restart_command} {bot_start}',
|
||||
f'kill -9 {pid} & {get_restart_command()} {bot_start}',
|
||||
shell=True,
|
||||
)
|
||||
else:
|
||||
subprocess.Popen(
|
||||
f'taskkill /F /PID {pid} & {restart_command} {bot_start}',
|
||||
f'taskkill /F /PID {pid} & {get_restart_command()} {bot_start}',
|
||||
shell=True,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user