diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-19 09:05:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-19 09:05:54 +0400 |
commit | f4b6d00926cb3ff847ac843a692ef858bccf769d (patch) | |
tree | e62b5170d12b410d17089b6c939f336d9ef003aa /release/scripts/modules/bpy | |
parent | d8e216833a278d85caece8407d6ea5fad1a10c11 (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.py | 2 |
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 |