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:
-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()