Skip to content

Instantly share code, notes, and snippets.

@ento
Created July 14, 2009 09:10
Show Gist options
  • Save ento/146864 to your computer and use it in GitHub Desktop.
Save ento/146864 to your computer and use it in GitHub Desktop.
"Am I run as a script?"
if __name__ == '__main__':
main()
if __FILE__ == $0
main
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment