Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os.execl

import os
import sys

if(input("Would you like to restart?
") == "y"):
    os.execl(sys.executable, 'python', '"{}"'.format(__file__), *sys.argv[1:])
else:
    exit(0)
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+4 =