From 4ed556851adc75d883ee33f9d506b515463eb78f Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Sat, 21 Dec 2019 06:02:06 +0800 Subject: [PATCH] Stdout: Disk:Src:Folder:File -> Folder/File This saves time when tracking down the file causing a build error --- bin/build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/build b/bin/build index c912ecb..b7bb7d9 100755 --- a/bin/build +++ b/bin/build @@ -207,6 +207,13 @@ os.remove(config.hfsimg) if config.passthru is not None: wsheet = vol['MPW']['Worksheet'].data.decode('mac_roman').replace('\r', '\n') + + # Convert all paths to native for my IDE of choice + def pathconverter(m): + components = m.group(1).split(':') + return path.join(*components) + wsheet = re.sub(r'\bDisk:Src:([^"\'\s]+)', pathconverter, wsheet) + print(wsheet, end='') # Slightly hacky way to extract an exit status