diff options
author | Fabian Fricke <frigi.f@googlemail.com> | 2010-07-30 03:03:08 +0400 |
---|---|---|
committer | Fabian Fricke <frigi.f@googlemail.com> | 2010-07-30 03:03:08 +0400 |
commit | bcd75f3be41e0fffab8d22c674bcb0106999a37f (patch) | |
tree | fe1b4473e21efb8c997c300c4e05addd1332fce0 /add_mesh_BoltFactory/preset_utils.py | |
parent | b91a60d1869fcabc4ac35e22a441500799e8fb58 (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/preset_utils.py')
-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 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() |