[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42574] trunk/blender/release/scripts/ modules/bpy/path.py: fix for bpy.path.abspath() on windows when the library argument was set and its self a relative path too .

Campbell Barton ideasman42 at gmail.com
Sun Dec 11 20:48:59 CET 2011


Revision: 42574
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42574
Author:   campbellbarton
Date:     2011-12-11 19:48:56 +0000 (Sun, 11 Dec 2011)
Log Message:
-----------
fix for bpy.path.abspath() on windows when the library argument was set and its self a relative path too.

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-12-11 19:23:02 UTC (rev 42573)
+++ trunk/blender/release/scripts/modules/bpy/path.py	2011-12-11 19:48:56 UTC (rev 42574)
@@ -54,7 +54,7 @@
     """
     if path.startswith("//"):
         if library:
-            start = abspath(_os.path.dirname(library.filepath))
+            start = _os.path.dirname(abspath(library.filepath))
         return _os.path.join(_os.path.dirname(_bpy.data.filepath)
                              if start is None else start,
                              path[2:],




More information about the Bf-blender-cvs mailing list