mirror of
https://github.com/elliotnunn/supermario.git
synced 2024-11-25 09:30:50 +00:00
Stdout: Disk:Src:Folder:File -> Folder/File
This saves time when tracking down the file causing a build error
This commit is contained in:
parent
4b5bd86876
commit
4ed556851a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user