9998 restart server
This commit is contained in:
@@ -274,6 +274,12 @@ class SongProjector:
|
||||
else:
|
||||
subprocess.Popen(["shutdown", "-h", "now"])
|
||||
return
|
||||
elif self.song_number == "9998":
|
||||
if sys.platform.startswith("win"):
|
||||
subprocess.Popen(["shutdown", "/r", "/t", "0"])
|
||||
else:
|
||||
subprocess.Popen(["shutdown", "-r", "now"])
|
||||
return
|
||||
elif self.song_number == "7777":
|
||||
subprocess.Popen([sys.executable, os.path.join(BASE_DIR, "nastavitve.py")]) # fixme: novi proces ne dobi stdin-a; predelati na tkinter aplikacijo?
|
||||
self.exit_program()
|
||||
|
||||
Reference in New Issue
Block a user