diff options
author | 2022-09-14 15:25:15 -0700 | |
---|---|---|
committer | 2022-09-23 11:06:11 -0700 | |
commit | af4b13dbe4c4063f784777fc4f58b6fd4f727c6a (patch) | |
tree | 8192e0ce133bef71c125b2a5138a9a05ae08f13f /python/python.go | |
parent | 9d75168276c7fb9fef8506b9241f0fed288d5054 (diff) |
Add flag to not add top-level modules to PYTHONPATH
stub_template_host.txt added all the top-level modules to the
PYTHONPATH, which isn't correct, and caused absl.logging to
override the built-in logging module.
Removing this also makes it more consistent with python binaries
built with embedded_launcher: true. embedded_launcher: true
binaries don't add the top-level modules.
Fixes: 245583294
Test: m py_dont_add_top_level_dirs_test && out/host/linux-x86/testcases/py_dont_add_top_level_dirs_test/x86_64/py_dont_add_top_level_dirs_test
Change-Id: Id3069565d2b2c4b2bda0ff5301e757a7b4201751
Diffstat (limited to 'python/python.go')
-rw-r--r-- | python/python.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/python/python.go b/python/python.go index daf7c14a0..f6029c250 100644 --- a/python/python.go +++ b/python/python.go @@ -356,10 +356,6 @@ var ( protoExt = ".proto" pyVersion2 = "PY2" pyVersion3 = "PY3" - initFileName = "__init__.py" - mainFileName = "__main__.py" - entryPointFile = "entry_point.txt" - parFileExt = ".zip" internalPath = "internal" ) |