Created
October 9, 2020 10:55
-
-
Save mthri/38f47fc4458c3613b8c83960829d3f41 to your computer and use it in GitHub Desktop.
Self Restart Python Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
os.execl(sys.executable, sys.executable, * sys.argv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment