[Bf-python] Blender use of PIL?

Matt matt at satbp.com
Fri Nov 28 04:29:34 CET 2003


On Thu, 27 Nov 2003 01:28:01 -0200
"Willian Padovani Germano" <wgermano at ig.com.br> wrote:
> and if you still have problems, please send us the output of sys.path
> from both standalone Python and Blender's.

Well, I am sort-of having a little problem now. I have read everything you indicated(thanks!) and then some on the topic and managed to find a mechanism that works (sys.path.extend) but this seems more like a kludge than a real fix. This means I have to import libraries after I have extended the path. It works but seems, to me anyway, a real kludge.

In any event. this is the output of the paths as requested.
shell:
>>> print sys.path
['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages', '/usr/lib/python2.2/site-packages/PIL', '/usr/lib/python2.2/site-packages/gtk-1.2']

blender:
['/usr/lib/python2.2/', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/home/matt/Software/blender/blender-2.28c-linux-glibc2.2.5-i386/', '/usr/lib/python2.2/', '/usr/lib/python2.2/site-packages', '/usr/lib/site-python']

blender(after the sys...export):
['/usr/lib/python2.2/', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/home/matt/Software/blender/blender-2.28c-linux-glibc2.2.5-i386/', '/usr/lib/python2.2/', '/usr/lib/python2.2/site-packages', '/usr/lib/site-python', '/usr/lib/python2.2/site-packages/PIL']

Thanks for the help,
Matt



More information about the Bf-python mailing list