Revision: 38504
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38504
Author: campbellbarton
Date: 2011-07-19 05:05:54 +0000 (Tue, 19 Jul 2011)
Log Message:
-----------
fix for bpy.path.abspath(), if a path was passed it would get the last
directory cut off, broke copying images on export.
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bpy/path.py
Modified: trunk/blender/release/scripts/modules/bpy/path.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/path.py 2011-07-19 04:12:49 UTC
(rev 38503)
+++ trunk/blender/release/scripts/modules/bpy/path.py 2011-07-19 05:05:54 UTC
(rev 38504)
@@ -35,7 +35,7 @@
: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
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs