fix [#27432] [2.57/scripts/modules/bpy/path.py:169] can't concat bytes to str
authorCampbell Barton <ideasman42@gmail.com>
Thu, 19 May 2011 06:27:39 +0000 (06:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 19 May 2011 06:27:39 +0000 (06:27 +0000)
release/scripts/modules/bpy/path.py

index f7e5b988cc8e3e80b5a313dc4c6229aea3eac668..5e95428f6419f9fb2ccbbec48090871de1de05f9 100644 (file)
@@ -135,7 +135,7 @@ def resolve_ncase(path):
         filename = os.path.basename(path)  # filename may be a directory or a file
         dirpath = os.path.dirname(path)
 
-        suffix = ""
+        suffix = path[:0]  # "" but ensure byte/str match
         if not filename:  # dir ends with a slash?
             if len(dirpath) < len(path):
                 suffix = path[:len(path) - len(dirpath)]