Files
MINGW-packages/mingw-w64-python3.9/3001-pathlib-path-sep.patch
Christoph Reiter 100ee163ff Add a separate python3.9 package
Based on #8278
2021-06-03 14:19:00 +02: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