[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27035] trunk/blender/release/scripts/ modules/bpy/utils.py: temp workaround for blender loading 2.4x scripts in ~ /.blender/scripts

Campbell Barton ideasman42 at gmail.com
Sat Feb 20 23:12:33 CET 2010


Revision: 27035
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27035
Author:   campbellbarton
Date:     2010-02-20 23:12:27 +0100 (Sat, 20 Feb 2010)

Log Message:
-----------
temp workaround for blender loading 2.4x scripts in ~/.blender/scripts

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bpy/utils.py

Modified: trunk/blender/release/scripts/modules/bpy/utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/utils.py	2010-02-20 21:28:57 UTC (rev 27034)
+++ trunk/blender/release/scripts/modules/bpy/utils.py	2010-02-20 22:12:27 UTC (rev 27035)
@@ -167,9 +167,15 @@
                     traceback.print_exc()
         _loaded[:] = []
 
-
+    unix_scripts = _os.path.expanduser("~/.blender/scripts")
     for base_path in script_paths():
         for path_subdir in ("", "ui", "op", "io", "cfg"):
+
+            # temp workaround
+            if not path_subdir and unix_scripts == base_path:
+                # print("skipping", base_path)
+                continue
+
             path = _os.path.join(base_path, path_subdir)
             if _os.path.isdir(path):
                 sys_path_ensure(path)





More information about the Bf-blender-cvs mailing list