diff --git a/Lib/ntpath.py b/Lib/ntpath.py index d16b6646eea2fd14860f0fa4685e7bb983776471..8d502942fa4614059b9fec72e568d6b870e83acc 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -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)