Skip to content

Instantly share code, notes, and snippets.

@saml
Created March 27, 2019 18:01
Show Gist options
  • Save saml/482eb88bc1da1fa4c955d952bbc03b0f to your computer and use it in GitHub Desktop.
Save saml/482eb88bc1da1fa4c955d952bbc03b0f to your computer and use it in GitHub Desktop.
$ tree
.
├── bar
│   └── a
│   ├── c.py
│   └── __init__.py
└── foo
└── a
├── b.py
└── __init__.py
$ PYTHONPATH=foo:bar python -c 'import a.c'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named c
$ PYTHONPATH=bar:foo python -c 'import a.c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment