[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38504] trunk/blender/release/scripts/ modules/bpy/path.py: fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.

Campbell Barton ideasman42 at gmail.com
Tue Jul 19 07:05:54 CEST 2011


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
 




More information about the Bf-blender-cvs mailing list