Fix assembler script
@@ -14,7 +14,7 @@ if platform == "win32":
devkitbasepath = r"C:\devkitPro\devkitPPC\bin"
else:
if not "DEVKITPPC" in os.environ:
- raise Exception(r"devkitPPC. Path to devkit ppc should be in the DEVKITPPC env var")
+ raise Exception(r"Could not find devkitPPC. Path to devkitPPC should be in the DEVKITPPC env var")
devkitbasepath = os.environ.get("DEVKITPPC") + "/bin"
def get_bin(name):
@@ -23,7 +23,7 @@ def get_bin(name):
return os.path.join(devkitbasepath, name)
return os.path.join(devkitbasepath, name + ".exe")
-if not get_bin("powerpc-eabi-objdump"):
+if not os.path.isfile(get_bin("powerpc-eabi-as")):
raise Exception(r"Failed to assemble code: Could not find devkitPPC. devkitPPC should be installed to: C:\devkitPro\devkitPPC")
# Allow yaml to dump OrderedDicts for the diffs.
