I know that os.execl(sys.executable, sys.executable, *sys.argv)
restarts the current running python script. But what if I have two scripts that are running and under certain conditions, the main python program have to restart the other python program. Is there a way to do that?
Asked
Viewed
15 times
0
-
This is a general programming question and has nothing to do with Raspberry Pi. You should better ask at stackoverflow.com – Ingo Nov 1 at 12:40