aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/py')
-rw-r--r--third_party/py/gflags/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/py/gflags/__init__.py b/third_party/py/gflags/__init__.py
index 77e4285448..fee354a360 100644
--- a/third_party/py/gflags/__init__.py
+++ b/third_party/py/gflags/__init__.py
@@ -1 +1,6 @@
+# gflags raises DuplicateFlagError when defining default flags from packages
+# with different names, so this pseudo-package must mimic the core gflags
+# package name.
+__name__ += ".gflags" # i.e. "third_party.py.gflags.gflags"
+
from gflags import *