[Bf-python] Third party modules in Blender

Stephen Swaney sswaney at centurytel.net
Sun Feb 17 20:08:28 CET 2013


On Sun, Feb 17, 2013 at 06:24:08PM +0100, Bastien Montagne wrote:

> My problem is rather simple: I want to use enchant module from within 
> Blender! :)
...
> I wonder whether it would be possible to add system's python path to 
> Blender's one (as e.g. a build option)? Or add enchant into copied 
> modules (I guess we do not want that :p )? Or should I just rely on a 
> ugly hack, like adding another setting to my code, containing the path 
> to my /usr/lib/python3/dist-package dir?

One solution would be similar to what Python itself does: run a known
file at startup to add whatever local paths and initialization needs
to be done.

In python's case (on linux), it uses /etc/pythonstartup.  We could put
something in our blender config folder.

-- 
Stephen Swaney		sswaney at centurytel.net




More information about the Bf-python mailing list