microelly2 / freecad-pluginloader

GNU Lesser General Public License v3.0
10 stars 7 forks source link

Symbols library refering to yorik's home folder #2

Closed kkoksvik closed 9 years ago

kkoksvik commented 9 years ago

fn="/usr/share/freecad/Mod/plugins/FreeCAD-symbols/SymbolsLibrary.FCMacro";exec open(fn).read()! Symbols library path /home/yorik/Sources/FreeCAD-symbolsnot found. Please set the correct path to your symbols library in the macro script done

microelly2 commented 9 years ago

You can set your individual path in FreeCAD Parameters. Inside the SymbolsLibrary Macro your destination is used:

LIBRARYPATH = "/home/yorik/Sources/FreeCAD-symbols"

s=FreeCAD.ParamGet('User parameter:Plugins/symbollib').GetString('destination') if s<>'': LIBRARYPATH = s else: pass

Of course, I should/will automate this setting.

microelly2 commented 9 years ago

For every entry configuration info is written to the user Parameters.