diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 08:00:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 08:00:11 +0400 |
commit | 5132be21d1697a636e62b9b71b9741e1b6c5e0b3 (patch) | |
tree | 7cad122b8d0df1862ba897453598558aac432ec8 /release/scripts/modules/bpy/path.py | |
parent | 7f60ee6cb5f3a483cb244ab640967131017f3bcc (diff) |
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.
Diffstat (limited to 'release/scripts/modules/bpy/path.py')
-rw-r--r-- | release/scripts/modules/bpy/path.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/path.py b/release/scripts/modules/bpy/path.py index f6254efac2e..eb1a5ffc455 100644 --- a/release/scripts/modules/bpy/path.py +++ b/release/scripts/modules/bpy/path.py @@ -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) |