Fix tools/unnamed.py and add tools/consts.py

This commit is contained in:
Rangi 2022-09-18 23:59:03 -04:00
parent 208ea07237
commit fa7d76f39e
2 changed files with 58 additions and 2 deletions

View file

@ -48,8 +48,8 @@ objects = None
if args.rootdir:
for line in subprocess.Popen(['make', '-C', args.rootdir, '-s', '-p', 'DEBUG=1'],
stdout=subprocess.PIPE).stdout.read().decode().split('\n'):
if line.startswith('pokered_obj := '):
objects = line[19:].strip().split()
if line.startswith('pokered_obj :='):
objects = line[len('pokered_obj :='):].strip().split()
break
else:
print('Error: Object files not found!', file=sys.stderr)