Skip to content

Instantly share code, notes, and snippets.

@micahlmartin
Created May 20, 2013 21:54
Show Gist options
  • Select an option

  • Save micahlmartin/5615885 to your computer and use it in GitHub Desktop.

Select an option

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