aboutsummaryrefslogtreecommitdiff
path: root/python/google/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/google/__init__.py')
-rwxr-xr-xpython/google/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/google/__init__.py b/python/google/__init__.py
index de40ea7c..55856141 100755
--- a/python/google/__init__.py
+++ b/python/google/__init__.py
@@ -1 +1,4 @@
-__import__('pkg_resources').declare_namespace(__name__)
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)