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?

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.