Skip to content

Instantly share code, notes, and snippets.

@micahlmartin
Created May 20, 2013 21:54
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 micahlmartin/5615885 to your computer and use it in GitHub Desktop.
Save micahlmartin/5615885 to your computer and use it in GitHub Desktop.
Prevent multiple calls?
_hasBeenSetup = False
def setup():
global _hasBeenSetup
if _hasBeenSetup:
return
_hasBeenSetup = True
# configure stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment