Don't fix already transformed $DEVKITARM variable

This commit is contained in:
Dave Murphy 2017-08-15 11:19:00 +01:00
parent 009f61a8b6
commit 5fd5b4da89

View File

@ -162,8 +162,9 @@ if __name__ == "__main__":
objdump_res = ""
try:
path = os.path.join(os.environ["DEVKITARM"], "bin", "arm-none-eabi-objdump")
if os.name == "nt":
path = ''.join((path[1], ':', path[2:])).replace('/', '\\')
if os.name == "nt" and path[0] == '/':
path = ''.join((path[1], ':', path[2:]))
objdump_res = subprocess.check_output((
path, "-marm", "-b", "binary",