Fix paths.is_absolute on windows
This commit is contained in:
parent
2169ae1c37
commit
771fedb260
|
@ -65,7 +65,7 @@ def _is_absolute(path):
|
|||
Returns:
|
||||
`True` if `path` is an absolute path.
|
||||
"""
|
||||
return path.startswith("/")
|
||||
return path.startswith("/") or (len(path)>2 and path[1] == ":")
|
||||
|
||||
|
||||
def _join(path, *others):
|
||||
|
|
Loading…
Reference in New Issue