Feb-04-2017, 10:35 PM
(This post was last modified: Feb-04-2017, 10:35 PM by treycoxiii.)
I want my script to execute, call itself, then quit. The idea is to have the program execute, call itself to re-open the file, then the old program quits and the newly opened program executes and repeats the process. Is this possible?
For example:
I open example.py
the code executes
at the end example.py is called within the script to open it again
quit()
The purpose is to have example.py loop itself continuously without me having to manually close and open it again and again.
**Something to keep in mind is that the program MUST close and re-open, not just loop the code inside.
For example:
I open example.py
the code executes
at the end example.py is called within the script to open it again
quit()
The purpose is to have example.py loop itself continuously without me having to manually close and open it again and again.
**Something to keep in mind is that the program MUST close and re-open, not just loop the code inside.