From b13bf71f24a65ee5b560312616e4be8c23136026 Mon Sep 17 00:00:00 2001 From: Yingjie Xu <yxu@nexedi.com> Date: Thu, 19 Apr 2012 14:04:02 +0200 Subject: [PATCH] Add package declaration. --- slapos/agent/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/slapos/agent/__init__.py b/slapos/agent/__init__.py index e69de29..5761d9e 100644 --- a/slapos/agent/__init__.py +++ b/slapos/agent/__init__.py @@ -0,0 +1,7 @@ +# 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__) + -- 2.30.9