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