Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-19 09:05:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-19 09:05:54 +0400
commitf4b6d00926cb3ff847ac843a692ef858bccf769d (patch)
treee62b5170d12b410d17089b6c939f336d9ef003aa /release/scripts/modules/bpy
parentd8e216833a278d85caece8407d6ea5fad1a10c11 (diff)
fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r--release/scripts/modules/bpy/path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/path.py b/release/scripts/modules/bpy/path.py
index 5e95428f641..74d043f8a54 100644
--- a/release/scripts/modules/bpy/path.py
+++ b/release/scripts/modules/bpy/path.py
@@ -35,7 +35,7 @@ def abspath(path, start=None):
:type start: string
"""
if path.startswith("//"):
- return _os.path.join(_os.path.dirname(_bpy.data.filepath if start is None else start), path[2:])
+ return _os.path.join(_os.path.dirname(_bpy.data.filepath) if start is None else start, path[2:])
return path