Files
MINGW-packages/mingw-w64-python/0091-compileall-Normalize-paths.patch

25 lines
903 B
Diff

From e43a51eb9d7afc7b79ce84cde9c40917d29840eb Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Fri, 5 Sep 2025 16:15:09 +0300
Subject: [PATCH 091/N] compileall: Normalize paths
---
Lib/compileall.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/compileall.py b/Lib/compileall.py
index 67fe370..fcff5ab 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -161,8 +161,8 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=0,
"in combination with stripdir or prependdir"))
success = True
- fullname = os.fspath(fullname)
- stripdir = os.fspath(stripdir) if stripdir is not None else None
+ fullname = os.path.normpath(os.fspath(fullname))
+ stripdir = os.path.normpath(os.fspath(stripdir)) if stripdir is not None else None
name = os.path.basename(fullname)
dfile = None