forked from bartvdbraak/blender
fix [#27432] [2.57/scripts/modules/bpy/path.py:169] can't concat bytes to str
This commit is contained in:
parent
1ce0958369
commit
863b60e1b8
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user