[Bf-python] Loading shared library in Blender Python

Dalai Felinto dfelinto at gmail.com
Wed Jun 17 15:59:04 CEST 2015


Hi,

If it's a one time thing that doesn't need to run in a different computer
you can append the folder of your shared libraries to sys.path.

That's also useful when you run "blender --python myscript.py" and need to
import another module that is in the same folder.

Cheers,
Dalai
On Jun 17, 2015 10:50, "Pierrick Koch" <pierrick.koch at gmail.com> wrote:

> Hello,
>
> I'd like to imort python package from ubuntu distribution into blender.
> Their shared object extension is .cpython-34m-x86_64-linux-gnu.so,
> while Blender look for .cpython-34m.so (without "-x86_64-linux-gnu").
>
> Do you know any way to override this issue,
> or a way to let Blender Python look for both extension ?
>
> Best,
> --
> Pierrick Koch
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20150617/133a7029/attachment.html>


More information about the Bf-python mailing list