s-light / io_import_fcstd

blender importer for FreeCAD files
MIT License
12 stars 2 forks source link

Appimage / snap / flatpack #11

Open malutanpetronel opened 3 years ago

malutanpetronel commented 3 years ago

How we can use FreeCad importer with appimage?

s-light commented 3 years ago

hmmmm that will get very tricky - the importer needs access to the FreeCAD installation to use the FreeCAD python modules.

i have opened a question in the FreeCAD Forum - have a look there too : How to Use FreeCAD Python API from outside scripts with AppImages

as a workaround you could unpack the appimage to a known location and use this as the path in the importer addon.

s-light commented 3 years ago

maybe it can be done by automagically unpacking / mounting in the background...

s-light commented 2 years ago

snap: unsquashfs “snap name”

at least on my system snap mounts the applications to /snap/* - for freecad this results in /snap/freecad/current/

$ ll /snap/freecad/current/usr/lib/FreeCAD*
-rw-r--r-- 1 root root 182K 2023-06-09 03:59:49.000 /snap/freecad/current/usr/lib/FreeCADGui.so
-rw-r--r-- 1 root root  61K 2023-06-09 03:00:43.000 /snap/freecad/current/usr/lib/FreeCAD.so

we could just test if this path exists and if - use it..