fix for bpy.path.abspath() on windows when the library argument was set and its self...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 11 Dec 2011 19:48:56 +0000 (19:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 11 Dec 2011 19:48:56 +0000 (19:48 +0000)
release/scripts/modules/bpy/path.py

index 4173d71b39c7dff1b73f7ec19494bfc1f871fa72..98a3c81d65a3bb83f93db7922e7814d909c77b8d 100644 (file)
@@ -54,7 +54,7 @@ def abspath(path, start=None, library=None):
     """
     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:],