Answers for "python restart current 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 restart current script"

Python Answers by Framework

Browse Popular Code Answers by Language