Skip to content

Instantly share code, notes, and snippets.

@mthri
Created October 9, 2020 10:55
Show Gist options
  • Save mthri/38f47fc4458c3613b8c83960829d3f41 to your computer and use it in GitHub Desktop.
Save mthri/38f47fc4458c3613b8c83960829d3f41 to your computer and use it in GitHub Desktop.
Self Restart Python Module
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