You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Don't use removeprefix in tools/unnamed.py (it worked locally...)
This commit is contained in:
@@ -48,8 +48,8 @@ objects = None
|
|||||||
if args.rootdir:
|
if args.rootdir:
|
||||||
for line in subprocess.Popen(['make', '-C', args.rootdir, '-s', '-p', 'DEBUG=1'],
|
for line in subprocess.Popen(['make', '-C', args.rootdir, '-s', '-p', 'DEBUG=1'],
|
||||||
stdout=subprocess.PIPE).stdout.read().decode().split('\n'):
|
stdout=subprocess.PIPE).stdout.read().decode().split('\n'):
|
||||||
if line.startswith('pokecrystal_obj'):
|
if line.startswith('pokecrystal_obj :='):
|
||||||
objects = line.removeprefix('pokecrystal_obj').lstrip().removeprefix(':=').strip().split()
|
objects = line[len('pokecrystal_obj :='):].strip().split()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print('Error: Object files not found!', file=sys.stderr)
|
print('Error: Object files not found!', file=sys.stderr)
|
||||||
|
Reference in New Issue
Block a user