mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 01:39:29 +01:00
Added restart funtion and image to navbar.
This commit is contained in:
11
webServer.py
11
webServer.py
@@ -434,3 +434,14 @@ class Headphones:
|
||||
sys.exit(0)
|
||||
|
||||
shutdown.exposed = True
|
||||
|
||||
def restart(self):
|
||||
restart = True
|
||||
#answer = raw_input("Do you want to restart this program ? ")
|
||||
#if answer.strip() in "y Y yes Yes YES".split():
|
||||
#restart = True
|
||||
if restart:
|
||||
python = sys.executable
|
||||
os.execl(python, python, * sys.argv)
|
||||
|
||||
restart.exposed = True
|
||||
Reference in New Issue
Block a user