mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 03:38:26 +02:00
changed restart function
This commit is contained in:
parent
fcd50a72c1
commit
58d1455bdf
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from .definition import *
|
||||||
|
|
||||||
|
|
||||||
def restart(self):
|
def restart(self):
|
||||||
os.execl(sys.executable, f'"{sys.executable}"', *sys.argv)
|
subprocess.Popen([sys.executable] + sys.argv, creationflags=CREATE_NO_WINDOW, cwd=os.getcwd())
|
||||||
sys.exit()
|
sys.exit()
|
Loading…
Reference in a new issue