modules dir missing from sys.path #30402

Closed
opened 2012-02-29 14:22:21 +01:00 by Dan Eicher · 5 comments
Member

%%%~/.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/python32.zip', '/usr/lib64/python3.2/', '/usr/lib64/python3.2/plat-linux2', '/usr/lib64/python3.2/lib-dynload', '/usr/share/blender/2.62/scripts/addons/modules']
%%%

%%%~/.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/python32.zip', '/usr/lib64/python3.2/', '/usr/lib64/python3.2/plat-linux2', '/usr/lib64/python3.2/lib-dynload', '/usr/share/blender/2.62/scripts/addons/modules'] %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%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?%%%

%%%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.%%%

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

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

%%%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.%%%

%%%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.%%%
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#30402
No description provided.