fix: 修复带空格路径导致的重启失败
This commit is contained in:
@@ -34,6 +34,7 @@ class AstrBotUpdator(RepoZipUpdator):
|
||||
if delay: time.sleep(delay)
|
||||
py = sys.executable
|
||||
self.terminate_child_processes()
|
||||
py = py.replace(" ", "\\ ")
|
||||
os.execl(py, py, *sys.argv)
|
||||
|
||||
def check_update(self, url: str, current_version: str) -> ReleaseInfo:
|
||||
|
||||
Reference in New Issue
Block a user