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 | |
parent | 4cdc70715469258a4da9e30bee017b5a881b9ca5 (diff) |
declare leap namespace
-rw-r--r-- | src/leap/__init__.py | 18 | ||||
-rw-r--r-- | src/leap/mx/__init__.py | 5 |
2 files changed, 10 insertions, 13 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__) diff --git a/src/leap/mx/__init__.py b/src/leap/mx/__init__.py index 27fadca..8ef1bc9 100644 --- a/src/leap/mx/__init__.py +++ b/src/leap/mx/__init__.py @@ -2,7 +2,10 @@ """ leap/mx/__init__.py ------------------- -Module intialization file for leap.mx . +Module initialization file for leap.mx . """ +from leap.mx.util import version __all__ = ['alias_resolver', 'couchdb', 'exceptions', 'runner', 'util'] +__author__ = version.getAuthors() +__version__ = version.getVersion() |