From 33f422c3a8e7ff71fa4fe2241acefebb82cf852e Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Fri, 5 Sep 2025 16:15:09 +0300 Subject: [PATCH 168/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 cd450be..da8cafb 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -163,8 +163,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