diff options
author | Isis Agora Lovecruft <isis@torproject.org> | 2013-05-06 11:17:14 -0700 |
---|---|---|
committer | Isis Agora Lovecruft <isis@torproject.org> | 2013-05-06 11:17:14 -0700 |
commit | be4ed13104164d67ae30da0740ef50c14c245d2a (patch) | |
tree | 0b37cbacf30d93a8c92a68afd51b409f31832cfc /src/leap/__init__.py | |
parent | 471c584b4fac9de68200f3b252292f1735f3d1a4 (diff) | |
parent | b8580daf5ef13e36d20443ac9f8ac21eee0404bb (diff) |
Merge pull request #2 from kalikaneko/leap-namespace
Leap namespace
Diffstat (limited to 'src/leap/__init__.py')
-rw-r--r-- | src/leap/__init__.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/leap/__init__.py b/src/leap/__init__.py index 8b30f3d..f48ad10 100644 --- a/src/leap/__init__.py +++ b/src/leap/__init__.py @@ -1,12 +1,6 @@ -# -*- encoding: utf-8 -*- -""" -leap/__init__.py ----------------- -Module intialization file for leap. -""" - -from leap.mx.util import version - -__all__ = ['mx'] -__author__ = version.getAuthors() -__version__ = version.getVersion() +# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages +try: + __import__('pkg_resources').declare_namespace(__name__) +except ImportError: + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) |