Files
MSYS2-packages/python2/2.7.6-allow-win-drives-in-os-path-isabs.patch

16 lines
408 B
Diff

--- a/Lib/posixpath.py 2014-02-21 10:34:28.539709900 +0000
+++ b/Lib/posixpath.py 2014-02-21 10:37:02.070491400 +0000
@@ -58,7 +58,11 @@
def isabs(s):
"""Test whether a path is absolute"""
- return s.startswith('/')
+ return s.startswith('/') or \
+ (sys.platform == 'msys' and \
+ len(s) > 2 and \
+ s[1] == ':' and \
+ (s[2] == os.sep or s[2] == '\\'))
# Join pathnames.