Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to reboot a python script

import os

while 1:
    os.system("python main.py")
    print "Restarting..."
    exit()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reboot #python #script
ADD COMMENT
Topic
Name
2+3 =