Created
October 18, 2012 13:50
-
-
Save konstantint/3911953 to your computer and use it in GitHub Desktop.
Python: Namespace package __init__.py
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
# Namespace package | |
try: | |
__import__('pkg_resources').declare_namespace(__name__) | |
except ImportError: | |
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment