Files
MINGW-packages/mingw-w64-python3.9/0089-pathlib-path-sep.patch
2021-06-18 00:48:22 +05:30

26 lines
592 B
Diff

From 20c7a5e3ee78a82547bb81a8397e4debdff743fb Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 17 Jun 2021 18:52:31 +0530
Subject: [PATCH 89/N] pathlib path sep
---
Lib/pathlib.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 756d389..cbf6921 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -123,6 +123,8 @@ class _WindowsFlavour(_Flavour):
sep = '\\'
altsep = '/'
+ if 'MSYSTEM' in os.environ:
+ sep, altsep = altsep, sep
has_drv = True
pathmod = ntpath
--
2.32.0