[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32687] trunk/blender/release/scripts: == addons ==
Luca Bonavita
mindrones at gmail.com
Sun Oct 24 18:01:22 CEST 2010
Revision: 32687
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32687
Author: mindrones
Date: 2010-10-24 18:01:21 +0200 (Sun, 24 Oct 2010)
Log Message:
-----------
== addons ==
- new (and temporary) directory addons_extern/ to store external projects addons
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bpy/utils.py
trunk/blender/release/scripts/ui/space_userpref.py
Modified: trunk/blender/release/scripts/modules/bpy/utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/utils.py 2010-10-24 15:26:43 UTC (rev 32686)
+++ trunk/blender/release/scripts/modules/bpy/utils.py 2010-10-24 16:01:21 UTC (rev 32687)
@@ -477,9 +477,16 @@
"""
Sets the addon state based on the user preferences.
"""
+
+ # RELEASE SCRIPTS: official scripts distributed in Blender releases
+ paths = script_paths("addons")
+
+ # CONTRIB SCRIPTS: good for testing but not official scripts yet
+ paths += script_paths("addons_contrib")
+
+ # EXTERN SCRIPTS: external projects scripts
+ paths += script_paths("addons_extern")
- paths = script_paths("addons") + script_paths("addons_contrib")
-
for path in paths:
_sys_path_ensure(path)
for mod_name, mod_path in _bpy.path.module_names(path):
Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py 2010-10-24 15:26:43 UTC (rev 32686)
+++ trunk/blender/release/scripts/ui/space_userpref.py 2010-10-24 16:01:21 UTC (rev 32687)
@@ -831,13 +831,21 @@
modules = []
loaded_modules = set()
+
+ # RELEASE SCRIPTS: official scripts distributed in Blender releases
paths = bpy.utils.script_paths("addons")
- # if folder addons_contrib/ exists, scripts in there will be loaded
+
+ # CONTRIB SCRIPTS: good for testing but not official scripts yet
+ # if folder addons_contrib/ exists, scripts in there will be loaded too
paths += bpy.utils.script_paths("addons_contrib")
+
+ # EXTERN SCRIPTS: external projects scripts
+ # if folder addons_extern/ exists, scripts in there will be loaded too
+ paths += bpy.utils.script_paths("addons_extern")
if bpy.app.debug:
t_main = time.time()
-
+
# fake module importing
def fake_module(mod_name, mod_path, speedy=True):
if bpy.app.debug:
More information about the Bf-blender-cvs
mailing list