diff options
author | Elliott Hughes | 2015-03-25 23:18:43 -0500 |
---|---|---|
committer | Elliott Hughes | 2015-03-25 23:18:43 -0500 |
commit | 608fb70dd86b763be56508a3412e6e0021390f2a (patch) | |
tree | c20e65739ac1f53d7c8c3e32d52e5f6c331d12e0 | |
parent | 09b66b93f17e639a6ff3994a51b6de61ca1c78d4 (diff) | |
download | platform-system-core-608fb70dd86b763be56508a3412e6e0021390f2a.tar.gz platform-system-core-608fb70dd86b763be56508a3412e6e0021390f2a.tar.xz platform-system-core-608fb70dd86b763be56508a3412e6e0021390f2a.zip |
$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
-rwxr-xr-x | toolbox/generate-input.h-labels.py | 2 |
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 = [] | |||
36 | 36 | ||
37 | r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)') | 37 | r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)') |
38 | 38 | ||
39 | with open(os.environ['ANDROID_BUILD_TOP'] + '/bionic/libc/kernel/uapi/linux/input.h', 'r') as f: | 39 | with open('bionic/libc/kernel/uapi/linux/input.h', 'r') as f: |
40 | for line in f: | 40 | for line in f: |
41 | m = r.match(line) | 41 | m = r.match(line) |
42 | if m: | 42 | if m: |