Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@skelterjohn
Created April 30, 2018 17:56
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 skelterjohn/72052ec4969e07d7d6758cdefd36be5b to your computer and use it in GitHub Desktop.
Save skelterjohn/72052ec4969e07d7d6758cdefd36be5b to your computer and use it in GitHub Desktop.
===== a.py =====
import b
def foo():
b.funAndUsefulStuff()
if __name__ == "__main__":
foo()
================
===== b.py =====
def funAndUsefulStuff():
print 'ok'
================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment