feat: pip fixer for torch, opencv
fixed: Preventing the browser from reopening automatically after a restart on Windows.
This commit is contained in:
@@ -1216,6 +1216,11 @@ def restart(self):
|
||||
exit(0)
|
||||
|
||||
print(f"\nRestarting... [Legacy Mode]\n\n")
|
||||
|
||||
sys_argv = sys.argv.copy()
|
||||
if '--windows-standalone-build' in sys_argv:
|
||||
sys_argv.remove('--windows-standalone-build')
|
||||
|
||||
if sys.platform.startswith('win32'):
|
||||
return os.execv(sys.executable, ['"' + sys.executable + '"', '"' + sys.argv[0] + '"'] + sys.argv[1:])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user