tomate44 / CurvesWB

Experiments for a FreeCAD Surface workbench
GNU Lesser General Public License v2.1
114 stars 24 forks source link

Platform-independent path join #9

Closed jmwright closed 7 years ago

jmwright commented 7 years ago

This line uses the *nix forward slash path separator. That can cause problems on Windows, and that path shows up as different in the Python console by doing print(sys.path) after the workbench loads.

This PR makes sure that path handling is portable in InitGui.py.

Our workbenches (here's my workbench) don't seem to be working well together on FreeCAD 0.17. If your workbench loads first, FreeCAD can't find InitGui.py from my workbench. I suspect there's a path conflict somewhere, but I'm still trying to figure it out.

jmwright commented 7 years ago

Ah, I totally missed it. We both have Gui in our paths. That's where the conflict is coming in.

jmwright commented 7 years ago

I ended up changing the name in my workbench to CQGui to avoid this naming conflict and potentially others in the future. Our workbenches should run fine together again.

tomate44 commented 7 years ago

Sorry, I missed your PR. (I don't get notifications from Github ??? ) Merged. Thanks a lot.