Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created June 8, 2013 18:30
Show Gist options
  • Save Eugeny/5736134 to your computer and use it in GitHub Desktop.
Save Eugeny/5736134 to your computer and use it in GitHub Desktop.
eugeny@eugeny-thinkpad ~/tmp> find | grep -v pyc
.
./a
./a/__init__.py
./b
./b/__init__.py
./p.py
eugeny@eugeny-thinkpad ~/tmp> cat a/__init__.py
def foo():
pass
print 'a imported'
eugeny@eugeny-thinkpad ~/tmp> cat b/__init__.py
from a import foo
print 'in b'
eugeny@eugeny-thinkpad ~/tmp> cat p.py
import b
eugeny@eugeny-thinkpad ~/tmp> python p.py
a imported
in b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment