MINGW-packages/mingw-w64-python3.13/0164-ntpath-Resolve-cyclic-dependency-with-os-module.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

23 lines
611 B
Diff

From 0ed51466324f4c6b57fe0ac72455776200144bfb Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Fri, 5 Sep 2025 15:15:55 +0300
Subject: [PATCH 164/N] ntpath: Resolve cyclic dependency with os module
---
Lib/ntpath.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 7d079bc..1064871 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -20,7 +20,7 @@ import sys
import genericpath
from genericpath import *
-if sys.platform == "win32" and os.environ.get("MSYSTEM", ""):
+if sys.use_alt_sep:
sep = '/'
altsep = '\\'
else: