Files
MINGW-packages/mingw-w64-python3.10/0073-pathlib-path-sep.patch
2022-04-25 08:31:03 +02:00

26 lines
593 B
Diff

From 87c3e0a29ff652fc3e1cb6acefc5363345733889 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 073/N] pathlib path sep
---
Lib/pathlib.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 621fba0..c930e1d 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -115,6 +115,8 @@ class _WindowsFlavour(_Flavour):
sep = '\\'
altsep = '/'
+ if 'MSYSTEM' in os.environ:
+ sep, altsep = altsep, sep
has_drv = True
pathmod = ntpath
--
2.35.3