Bug report: args.command.helpFile does not work because of spaces in the path

Bug report: args.command.helpFile does not work because of spaces in the path

OceanHydroAU
Collaborator Collaborator
215 Views
0 Replies
Message 1 of 1

Bug report: args.command.helpFile does not work because of spaces in the path

OceanHydroAU
Collaborator
Collaborator

This is the only variation that does work (on Mac OSX):

 

cmd = args.command
cmd.helpFile = '/tmp/help.html' # Works!

 

Everything else fails every time (crashes or shows the (i) icon but the (i) icon does nothing when clicked) - I've tried (and these all exist)

'help.html'

'./help.html'

'resources/help.html'

'.//help.html'

'./resources/help.html'

'.//resources//help.html'

"'help.html'" # crashes fusion 360

'"./help.html"' # crashes fusion 360

'/Users/cnd/Library/Application Support/Autodesk/Autodesk Fusion 360/API/AddIns/Airfoil Tools/help.html'

'///Users/cnd/Library/Application%20Support/Autodesk/Autodesk%20Fusion%20360/API/AddIns/Airfoil%20Tools/help.html' # crashes fusion 360

'/Users/cnd/Library/Application%20Support/Autodesk/Autodesk%20Fusion%20360/API/AddIns/Airfoil%20Tools/help.html'  # crashes fusion 360

 

and

 

$ mkdir "/tmp/subfolder with spaces"
$ cp /tmp/help.html "/tmp/subfolder with spaces"
$ dir "/tmp/subfolder with spaces/help.html"
-rw-r--r--@ 1 cnd wheel 932 21 Apr 01:27 /tmp/subfolder with spaces/help.html

"/tmp/subfolder with spaces/help.html"  # fails

 

That last one is the smoking gun...

 

Should be an easy fix at least 🙂

0 Likes
216 Views
0 Replies
Replies (0)