Skip to content

Instantly share code, notes, and snippets.

@musically-ut
Created October 21, 2011 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save musically-ut/1303540 to your computer and use it in GitHub Desktop.
Save musically-ut/1303540 to your computer and use it in GitHub Desktop.
Restarting 'lolprogram' on restarts (by Nirbheek)
retcode = 1
while retcode:
retcode = subprocess.call(["lolprogram", "arg1", "arg2"])
print("Exiting with return code 0")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment