Difference between os.execl() and os.execv() in python
问题 Is there a difference between os.execl() and os.execv() in python? I was using os.execl(python, python, *sys.argv) to restart my script (from here). But it seems to start from where the previous script left. I want the script to start from the beginning when it restarts. Will this os.execv(__file__,sys.argv) do the job? command and idea from here. I couldn't find difference between them from the python help/documentation. Is there a way do clean restart? For a little more background on what I