Files
MINGW-packages/mingw-w64-python/3001-pathlib-path-sep.patch
2019-12-23 11:20:18 +01:00

12 lines
309 B
Diff

--- Python-3.8.1/Lib/pathlib.py.orig 2019-12-18 18:21:23.000000000 +0100
+++ Python-3.8.1/Lib/pathlib.py 2019-12-23 11:17:46.731915100 +0100
@@ -122,6 +122,8 @@
sep = '\\'
altsep = '/'
+ if 'MSYSTEM' in os.environ:
+ sep, altsep = altsep, sep
has_drv = True
pathmod = ntpath