Stdout: Disk:Src:Folder:File -> Folder/File

This saves time when tracking down the file causing a build error
This commit is contained in:
Elliot Nunn 2019-12-21 06:02:06 +08:00
parent 4b5bd86876
commit 4ed556851a
1 changed files with 7 additions and 0 deletions

View File

@ -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