[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [870] trunk/py/scripts/addons/ add_mesh_BoltFactory/preset_utils.py: Got the wrong presets path on some windows installations, should work now.

Fabian Fricke frigi.f at googlemail.com
Fri Jul 30 01:03:08 CEST 2010


Revision: 870
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=870
Author:   frigi
Date:     2010-07-30 01:03:08 +0200 (Fri, 30 Jul 2010)

Log Message:
-----------
Got the wrong presets path on some windows installations, should work now. (also thanks to jesterKing and testscreenings)

Modified Paths:
--------------
    trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py

Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py	2010-07-29 21:45:33 UTC (rev 869)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py	2010-07-29 23:03:08 UTC (rev 870)
@@ -23,8 +23,8 @@
 
 def getPresets():
 
-    scriptPath = sys.path[1] + os.sep + "add_mesh_BoltFactory"
-    presetPath = scriptPath + os.sep +"presets"
+    scriptPath = bpy.utils.script_paths()[0] + os.sep  + "addons" + os.sep + "add_mesh_BoltFactory"
+    presetPath = scriptPath + os.sep + "presets"
     presetFiles = os.listdir(presetPath)
     #presetFiles.sort()
 




More information about the Bf-extensions-cvs mailing list