summarylogtreecommitdiffstats
path: root/0075-pathlib-path-sep.patch
blob: 9adef32da16970a15d3276ba75c74dff46717af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 81189e3707d4f72b57e86e40f065f811d80a97ac 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 075/N] pathlib path sep

---
 Lib/pathlib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 7aeda14..a66e754 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.33.0