diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/__init__.py b/src/mailman/__init__.py index 8c5301b0d..e5f46e3d4 100644 --- a/src/mailman/__init__.py +++ b/src/mailman/__init__.py @@ -29,3 +29,12 @@ __all__ = [ import warnings warnings.filterwarnings( 'ignore', category=DeprecationWarning, module='lazr.restful._resource') + + +# This is a namespace package. +try: + import pkg_resources + pkg_resources.declare_namespace(__name__) +except ImportError: + import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) |
