mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
15 lines
485 B
Diff
15 lines
485 B
Diff
diff --git a/python/google/protobuf/__init__.py b/python/google/protobuf/__init__.py
|
|
index 45a6c20c5..c28dd8852 100755
|
|
--- a/python/google/protobuf/__init__.py
|
|
+++ b/python/google/protobuf/__init__.py
|
|
@@ -8,3 +8,9 @@
|
|
# Copyright 2007 Google Inc. All Rights Reserved.
|
|
|
|
__version__ = '5.27.2'
|
|
+
|
|
+if __name__ != '__main__':
|
|
+ try:
|
|
+ __import__('pkg_resources').declare_namespace(__name__)
|
|
+ except ImportError:
|
|
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
|