From 3c379402c816e1025739d2b9415d658a122fa0fa Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 5 Jan 2026 19:58:00 +0800 Subject: [PATCH] Update compileall.py --- compileall.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compileall.py b/compileall.py index 99de2080..561a4c44 100644 --- a/compileall.py +++ b/compileall.py @@ -16,6 +16,8 @@ def do_compile(src_path, dst_path): assert os.system(cmd) == 0 if os.path.isfile(source_dir): + if output_dir.endswith('.py'): + output_dir += 'c' do_compile(source_dir, output_dir) exit(0)