Skip to content

Commit 94f97dd

Browse files
committed
pathlib path sep
1 parent 31a2f00 commit 94f97dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/pathlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ class _WindowsFlavour(_Flavour):
115115

116116
sep = '\\'
117117
altsep = '/'
118+
if 'MSYSTEM' in os.environ:
119+
sep, altsep = altsep, sep
118120
has_drv = True
119121
pathmod = ntpath
120122

0 commit comments

Comments
 (0)