Fix ntpath abspath to deal with bytes.
This commit is contained in:
parent
998171f0d7
commit
ad8c5ca4e7
|
@ -561,6 +561,8 @@ else: # use native Windows method on Windows
|
|||
path = _getfullpathname(path)
|
||||
except WindowsError:
|
||||
pass # Bad path - return unchanged.
|
||||
elif isinstance(path, bytes):
|
||||
path = os.getcwdb()
|
||||
else:
|
||||
path = os.getcwd()
|
||||
return normpath(path)
|
||||
|
|
Loading…
Reference in New Issue