From 9a7e231dcc893675742d41cbc6c18bcf8679921b Mon Sep 17 00:00:00 2001 From: hyungi Date: Sat, 13 Jun 2026 12:44:58 +0900 Subject: [PATCH] =?UTF-8?q?fix(safety):=20verify=5Fstatute=5Fchain=20sys.p?= =?UTF-8?q?ath=20=E2=80=94=20/app=20=EB=A3=A8=ED=8A=B8=20=EC=9E=90?= =?UTF-8?q?=EB=8F=99=20=ED=83=90=EC=A7=80=20(workers=20import)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- scripts/verify_statute_chain.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/verify_statute_chain.py b/scripts/verify_statute_chain.py index a022034..64711db 100644 --- a/scripts/verify_statute_chain.py +++ b/scripts/verify_statute_chain.py @@ -23,7 +23,12 @@ import asyncio import os import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "app")) +# 컨테이너: /app/scripts → /app (workers/core/models 패키지 루트). 로컬: repo/scripts → repo/app +_here = os.path.dirname(os.path.abspath(__file__)) +for _cand in (os.path.join(_here, ".."), os.path.join(_here, "..", "app")): + if os.path.isdir(os.path.join(_cand, "workers")): + sys.path.insert(0, os.path.abspath(_cand)) + break from collections import defaultdict