Update main.py
This commit is contained in:
parent
2cccab40f1
commit
01f7015d4e
7
main.py
7
main.py
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
@ -70,6 +71,7 @@ class color:
|
|||||||
def restart_program():
|
def restart_program():
|
||||||
python = sys.executable
|
python = sys.executable
|
||||||
subprocess.call([python, __file__])
|
subprocess.call([python, __file__])
|
||||||
|
clear()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -347,7 +349,10 @@ def start():
|
|||||||
print("")
|
print("")
|
||||||
main()
|
main()
|
||||||
except (KeyboardInterrupt, EOFError):
|
except (KeyboardInterrupt, EOFError):
|
||||||
restart_program()
|
try:
|
||||||
|
restart_program()
|
||||||
|
except (KeyboardInterrupt, EOFError):
|
||||||
|
restart_program()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user