fix [#28075] After the correction of No.38528 is applied, the following phenomenon has been generated.

own fault in recent addition of bpy.path.basename() not supporting byte paths.
This commit is contained in:
2011-07-25 04:00:11 +00:00
parent 7f60ee6cb5
commit 5132be21d1
2 changed files with 7 additions and 7 deletions

View File

@@ -239,4 +239,4 @@ def basename(path):
Use for Windows compatibility.
"""
return _os.path.basename(path[2:] if path.startswith("//") else path)
return _os.path.basename(path[2:] if path[:2] in {"//", b"//"} else path)