$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
This commit is contained in:
Elliott Hughes 2015-03-25 21:18:43 -07:00
parent 09b66b93f1
commit 608fb70dd8
1 changed files with 1 additions and 1 deletions

View File

@ -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: