Fix tools/unnamed.py

This commit is contained in:
Rangi 2020-07-13 20:54:33 -04:00
parent eca33ef190
commit 2e8b4836b0

View File

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