sparkfunX / Buzzard

Software tools for EAGLE silkscreen generation
100 stars 18 forks source link

Missing path seperators when calling Buzzard.py #30

Open Crazor opened 3 years ago

Crazor commented 3 years ago

I cannot figure out how to run this from Fusion 360 on macOS. I can browse for Buzzard.py from settings tab, the path shows up just normal (i.e. "/Users/crazor/repos/Buzzard"), however, all path seperators get stripped and I get an "Error: Command failed." button next to the OK button when I try to create a label. The error message says python "UserscrazorreposBuzzardbuzzard.py" -o lib -f FredokaOne

I tried different ways to specify the path, like escaping the slashes like \/, using\\, // but no dice.

gromain commented 1 year ago

I have the same issue running this in a linux environment.

One part of the problem lies in Buzzard.py at line 77 where paths are hardcoded using a backward slash. I recommend using the python os.path module for this.

I feel there is the same issue in the ULP, in the calls to the convertForwardToBackSlashes function.