aboutsummaryrefslogtreecommitdiffstats
path: root/python/scripts/stub_template_host.txt
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-05-19 00:54:13 +0000
committerDan Willemsen <dwillemsen@google.com>2018-05-19 00:54:13 +0000
commit96c957ae20d8418f85cf10b4ee06ce9781d86c47 (patch)
tree99bc385c7a7a4159ffa10ce1ac7003376563d21b /python/scripts/stub_template_host.txt
parenta14704c12bbcc1eb207d1c0ff3df0140a4582fc5 (diff)
downloadandroid_build_soong-96c957ae20d8418f85cf10b4ee06ce9781d86c47.tar.gz
android_build_soong-96c957ae20d8418f85cf10b4ee06ce9781d86c47.tar.bz2
android_build_soong-96c957ae20d8418f85cf10b4ee06ce9781d86c47.zip
Revert "Add path interposer"
This reverts commit a14704c12bbcc1eb207d1c0ff3df0140a4582fc5. Reason for revert: breaking builds Change-Id: I920b0ff41823428a0baf59b3fd82cbcc766babca
Diffstat (limited to 'python/scripts/stub_template_host.txt')
-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