summaryrefslogtreecommitdiff
path: root/toolbox/generate-input.h-labels.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-03-25 21:18:43 -0700
committerElliott Hughes <enh@google.com>2015-03-25 21:18:43 -0700
commit608fb70dd86b763be56508a3412e6e0021390f2a (patch)
treec20e65739ac1f53d7c8c3e32d52e5f6c331d12e0 /toolbox/generate-input.h-labels.py
parent09b66b93f17e639a6ff3994a51b6de61ca1c78d4 (diff)
$ANDROID_BUILD_TOP isn't set for continuous builds.
Instead, take advantage of the fact that we'll be run from the root of the tree. Change-Id: I5ce6d1c9ae8d478748ab90c9d3cc8e665ae5859b
Diffstat (limited to 'toolbox/generate-input.h-labels.py')
-rwxr-xr-xtoolbox/generate-input.h-labels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolbox/generate-input.h-labels.py b/toolbox/generate-input.h-labels.py
index 4d7904350..ebb95887a 100755
--- a/toolbox/generate-input.h-labels.py
+++ b/toolbox/generate-input.h-labels.py
@@ -36,7 +36,7 @@ ff_list = []
r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)')
-with open(os.environ['ANDROID_BUILD_TOP'] + '/bionic/libc/kernel/uapi/linux/input.h', 'r') as f:
+with open('bionic/libc/kernel/uapi/linux/input.h', 'r') as f:
for line in f:
m = r.match(line)
if m: