diff options
author | Kali Kaneko <kali@leap.se> | 2013-03-15 03:30:56 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-03-15 03:30:56 +0900 |
commit | b8580daf5ef13e36d20443ac9f8ac21eee0404bb (patch) | |
tree | 6c6a4f3c4385a1e485a5e49ca284b1f9c65fe91a /src/leap/__init__.py | |
parent | 4cdc70715469258a4da9e30bee017b5a881b9ca5 (diff) |
declare 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__) |