fix for bpy.path.abspath(), if a path was passed it would get the last directory...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jul 2011 05:05:54 +0000 (05:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jul 2011 05:05:54 +0000 (05:05 +0000)
release/scripts/modules/bpy/path.py

index 5e95428f6419f9fb2ccbbec48090871de1de05f9..74d043f8a544242e9c0053d4730be8dd7b757f94 100644 (file)
@@ -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