Answers for "python how to restart a script from another script"

1

python restart script

sys.stdout.flush()
os.execl(sys.executable, 'python', __file__, *sys.argv[1:])
Posted by: Guest on August-06-2021

Code answers related to "python how to restart a script from another script"

Python Answers by Framework

Browse Popular Code Answers by Language