From 5fd5b4da89ecebecef5fcc13a23388a0f99146da Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 15 Aug 2017 11:19:00 +0100 Subject: [PATCH] Don't fix already transformed $DEVKITARM variable --- exceptions/exception_dump_parser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exceptions/exception_dump_parser.py b/exceptions/exception_dump_parser.py index f9fdf2c..abcb25f 100644 --- a/exceptions/exception_dump_parser.py +++ b/exceptions/exception_dump_parser.py @@ -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",