Skip to content

Instantly share code, notes, and snippets.

@the5fire
Created August 6, 2018 03:54
Show Gist options
  • Save the5fire/d69fd2530e7fcd439d9f9a2fa31fa7cf to your computer and use it in GitHub Desktop.
Save the5fire/d69fd2530e7fcd439d9f9a2fa31fa7cf to your computer and use it in GitHub Desktop.
"""
.
├── 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