aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-05-25 23:26:00 +0000
committerDan Willemsen <dwillemsen@google.com>2018-05-25 23:26:00 +0000
commit09f4540d667a98e548bf5dfc94784382ebedc963 (patch)
tree5de93af9689e4db7d56f94ff5f0ba57750d0737c /python
parentc59a92cb1a73468a0e2af7102632dda48d811f5b (diff)
downloadbuild_soong-09f4540d667a98e548bf5dfc94784382ebedc963.tar.gz
build_soong-09f4540d667a98e548bf5dfc94784382ebedc963.tar.bz2
build_soong-09f4540d667a98e548bf5dfc94784382ebedc963.zip
Revert "Revert "Revert "Add path interposer"""
This reverts commit c59a92cb1a73468a0e2af7102632dda48d811f5b. Reason for revert: tests are broken with long OUT_DIRs They're directly calling net.Listen, and not using the fallback for long socket names. Change-Id: Id14cbd499fd9b36c6926b7552d3554340cb0916c
Diffstat (limited to 'python')
-rw-r--r--python/scripts/stub_template_host.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/scripts/stub_template_host.txt b/python/scripts/stub_template_host.txt
index 386298eb..b90a28b5 100644
--- a/python/scripts/stub_template_host.txt
+++ b/python/scripts/stub_template_host.txt
@@ -18,6 +18,8 @@ def SearchPathEnv(name):
for directory in search_path:
if directory == '': continue
path = os.path.join(directory, name)
+ if os.path.islink(path):
+ path = os.path.realpath(path)
# Check if path is actual executable file.
if os.path.isfile(path) and os.access(path, os.X_OK):
return path