diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-20 16:03:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-20 16:03:49 +0400 |
commit | 7d15179979daca70848e05428c3b897e66f86896 (patch) | |
tree | 8ffed0bc1892dd78096c4b971e3a84b4b76c5fd9 /add_mesh_BoltFactory | |
parent | 621354eded371e761f1fd4b0a312b42b81ac0360 (diff) |
fix for bolt presets
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r-- | add_mesh_BoltFactory/preset_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_BoltFactory/preset_utils.py b/add_mesh_BoltFactory/preset_utils.py index d477b94a..4d31accf 100644 --- a/add_mesh_BoltFactory/preset_utils.py +++ b/add_mesh_BoltFactory/preset_utils.py @@ -23,13 +23,13 @@ import os, sys def getPresets(): - scriptPath = os.path.join(bpy.utils.script_paths()[0], "addons" , "add_mesh_BoltFactory") + scriptPath = os.path.dirname(__file__) presetPath = os.path.join(scriptPath, "presets") presetFiles = os.listdir(presetPath) #presetFiles.sort() presets = [(presetFile, presetFile.rpartition(".")[0], presetFile) - for i, presetFile in enumerate(presetFiles)] + for i, presetFile in enumerate(presetFiles) if presetFile.endswith(".py")] #print(presets) return presets, presetPath |