Don't use removeprefix in tools/unnamed.py (it worked locally...)

This commit is contained in:
Rangi 2022-09-18 23:56:11 -04:00
parent 55ca2da25a
commit 29fada7d8c

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('pokecrystal_obj'):
objects = line.removeprefix('pokecrystal_obj').lstrip().removeprefix(':=').strip().split()
if line.startswith('pokecrystal_obj :='):
objects = line[len('pokecrystal_obj :='):].strip().split()
break
else:
print('Error: Object files not found!', file=sys.stderr)