Fix ntpath abspath to deal with bytes.

This commit is contained in:
Florent Xicluna 2010-03-08 14:44:41 +00:00
parent 998171f0d7
commit ad8c5ca4e7
1 changed files with 2 additions and 0 deletions

View File

@ -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)