From bcd75f3be41e0fffab8d22c674bcb0106999a37f Mon Sep 17 00:00:00 2001 From: Fabian Fricke <frigi.f@googlemail.com> Date: Thu, 29 Jul 2010 23:03:08 +0000 Subject: [PATCH] Got the wrong presets path on some windows installations, should work now. (also thanks to jesterKing and testscreenings) --- add_mesh_BoltFactory/preset_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add_mesh_BoltFactory/preset_utils.py b/add_mesh_BoltFactory/preset_utils.py index d29c8d631..82becf873 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() -- GitLab