aboutsummaryrefslogtreecommitdiff
path: root/python/google/protobuf/pyext/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/google/protobuf/pyext/__init__.py')
-rw-r--r--python/google/protobuf/pyext/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/google/protobuf/pyext/__init__.py b/python/google/protobuf/pyext/__init__.py
index e69de29b..55856141 100644
--- a/python/google/protobuf/pyext/__init__.py
+++ b/python/google/protobuf/pyext/__init__.py
@@ -0,0 +1,4 @@
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)