fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.

This commit is contained in:
Campbell Barton 2011-07-19 05:05:54 +00:00
parent d8e216833a
commit f4b6d00926

@ -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