diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-08 17:49:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-08 17:49:30 +0400 |
commit | 948a12fa7157762e373a0f543f689123835e9987 (patch) | |
tree | 8f8d3ca81eb7c4195b1ab63a69520c1d44f72332 /add_mesh_BoltFactory/preset_utils.py | |
parent | 4fd834ee5ee5dd6a1a3cc56e451ef01d23dd001d (diff) |
removed header from these files by mistake when testing some other problem.
this commit also makes a minor change with path joinin in preset_utils.py
Diffstat (limited to 'add_mesh_BoltFactory/preset_utils.py')
-rw-r--r-- | add_mesh_BoltFactory/preset_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_mesh_BoltFactory/preset_utils.py b/add_mesh_BoltFactory/preset_utils.py index 82becf87..d477b94a 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 = bpy.utils.script_paths()[0] + os.sep + "addons" + os.sep + "add_mesh_BoltFactory" - presetPath = scriptPath + os.sep + "presets" + scriptPath = os.path.join(bpy.utils.script_paths()[0], "addons" , "add_mesh_BoltFactory") + presetPath = os.path.join(scriptPath, "presets") presetFiles = os.listdir(presetPath) #presetFiles.sort() @@ -43,7 +43,7 @@ def setProps(props, preset, presetsPath): #bpy.ops.script.python_file_run(filepath=presetsPath + '\\' + preset) - file = open(presetsPath + os.sep + preset) + file = open(os.path.join(presetsPath, preset)) for line in file: exec(line) |