Page MenuHome

modules dir missing from sys.path
Closed, ResolvedPublic


~/.blender/2.62/scripts/addons/modules isn't being imported when it exists.

>>> import sys
>>> sys.path
['/usr/share/blender/2.62/scripts/addons_contrib', '/home/dan/.blender/2.62/scripts/addons', '/usr/share/blender/2.62/scripts/addons', '/usr/share/blender/2.62/scripts/startup', '/usr/share/blender/2.62/scripts/modules', '/usr/lib64/python2.7/site-packages/mpich2', '/usr/lib64/', '/usr/lib64/python3.2/', '/usr/lib64/python3.2/plat-linux2', '/usr/lib64/python3.2/lib-dynload', '/usr/share/blender/2.62/scripts/addons/modules']



Event Timeline

Was that even intended to work? My understanding is that addons should either be a single .py or a folder installed at the top level. Presets also need to be placed in a folder inside the folder for the addon, shouldn't the same be done for modules?

it wasnt intended to work, but fixed in svn. r45251.

For the historical record...

The reasoning behind this is to support python (compiled) modules somewhere that is user writable so you don't have to muck around with sudo and/or mess up your package installed addons in /usr/share like is done with CPack or the official distro packages.

Also, if one (/usr/share/blender/.../addons/modules) works then the other really should have the same behavior.

Thanks Campbell.