Created
August 6, 2018 03:54
-
-
Save the5fire/d69fd2530e7fcd439d9f9a2fa31fa7cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
. | |
├── app1 | |
│ └── parent | |
│ ├── one | |
│ └── two | |
├── app2 | |
│ └── parent | |
│ ├── one | |
│ └── two.py | |
└── test_namespace.py | |
""" | |
import sys | |
sys.path.append('app1') | |
sys.path.append('app2') | |
import parent.one | |
import parent.two | |
print(parent.__path__) | |
print(parent.one.__path__) | |
print(parent.two.__path__) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment