Skip to content
Snippets Groups Projects
Commit bcd75f3b authored by Fabian Fricke's avatar Fabian Fricke
Browse files

Got the wrong presets path on some windows installations, should work now....

Got the wrong presets path on some windows installations, should work now. (also thanks to jesterKing and testscreenings)
parent b91a60d1
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment