From 281e31511cbc43017a6c7ae92b87bcd4abd2d967 Mon Sep 17 00:00:00 2001 From: gavindiaz Date: Tue, 27 Oct 2026 22:17:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20clean=5Forphans=20=E5=8A=A0=E5=8C=85=20?= =?UTF-8?q?=5F=5Finit=5F=5F.py=EF=BC=8Cpython=20-m=20=E6=89=8D=E8=83=BD?= =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit app/scripts 目录缺少 __init__.py,导致容器里 `python -m app.scripts.clean_orphans` 报 ModuleNotFoundError。 Co-Authored-By: Claude Code --- backend/app/scripts/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 backend/app/scripts/__init__.py diff --git a/backend/app/scripts/__init__.py b/backend/app/scripts/__init__.py new file mode 100644 index 0000000..5b2a259 --- /dev/null +++ b/backend/app/scripts/__init__.py @@ -0,0 +1 @@ +"""维护脚本包:python -m app.scripts.clean_orphans 需要它是可导入的包。""" \ No newline at end of file