Remove flags that enable the new python path behavior
The new behavior has been enabled by default, and these flags aren't necessary anymore. Fixes: 245583294 Test: m py_dont_import_folder_of_entrypoint_test && /ssd/aosp-master/out/host/linux-x86/testcases/py_dont_import_folder_of_entrypoint_test/x86_64/py_dont_import_folder_of_entrypoint_test Change-Id: I5b6f98da51791bc5d28662ef799a10c1bb6a35a0
This commit is contained in:
@@ -23,16 +23,7 @@ def Main():
|
||||
zf.extractall(runfiles_path)
|
||||
zf.close()
|
||||
|
||||
# Add runfiles path to PYTHONPATH.
|
||||
python_path_entries = [runfiles_path]
|
||||
|
||||
if ADD_TOP_DIRECTORIES_TO_PATH:
|
||||
# Add top dirs within runfiles path to PYTHONPATH.
|
||||
top_entries = [os.path.join(runfiles_path, i) for i in os.listdir(runfiles_path)]
|
||||
top_pkg_dirs = [i for i in top_entries if os.path.isdir(i)]
|
||||
python_path_entries += top_pkg_dirs
|
||||
|
||||
new_python_path = ":".join(python_path_entries)
|
||||
new_python_path = runfiles_path
|
||||
old_python_path = os.environ.get(PYTHON_PATH)
|
||||
|
||||
if old_python_path:
|
||||
|
Reference in New Issue
Block a user