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