changed restart function

This commit is contained in:
raphael60650 2021-06-18 10:36:40 +02:00
parent fcd50a72c1
commit 58d1455bdf

View file

@ -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()