Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Fricke <frigi.f@googlemail.com>2010-07-30 03:03:08 +0400
committerFabian Fricke <frigi.f@googlemail.com>2010-07-30 03:03:08 +0400
commitbcd75f3be41e0fffab8d22c674bcb0106999a37f (patch)
treefe1b4473e21efb8c997c300c4e05addd1332fce0 /add_mesh_BoltFactory
parentb91a60d1869fcabc4ac35e22a441500799e8fb58 (diff)
Got the wrong presets path on some windows installations, should work now. (also thanks to jesterKing and testscreenings)
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r--add_mesh_BoltFactory/preset_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_BoltFactory/preset_utils.py b/add_mesh_BoltFactory/preset_utils.py
index d29c8d63..82becf87 100644
--- a/add_mesh_BoltFactory/preset_utils.py
+++ b/add_mesh_BoltFactory/preset_utils.py
@@ -23,8 +23,8 @@ import os, sys
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()