Merge pull request #62 from living-ip/codex/fix-kb-proposal-dashboard-runtime-import-20260709
Some checks are pending
CI / lint-and-test (push) Waiting to run
Some checks are pending
CI / lint-and-test (push) Waiting to run
Fix KB proposal dashboard runtime import path
This commit is contained in:
commit
2bcf01fc8e
1 changed files with 7 additions and 3 deletions
|
|
@ -23,9 +23,13 @@ from aiohttp import web
|
|||
from shared_ui import render_page
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
SCRIPTS_DIR = ROOT / "scripts"
|
||||
if str(SCRIPTS_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(SCRIPTS_DIR))
|
||||
SCRIPT_DIR_CANDIDATES = [
|
||||
ROOT / "scripts",
|
||||
Path(os.environ.get("TELEO_INFRA_REPO_DIR", "/opt/teleo-eval/workspaces/deploy-infra")) / "scripts",
|
||||
]
|
||||
for scripts_dir in SCRIPT_DIR_CANDIDATES:
|
||||
if str(scripts_dir) not in sys.path:
|
||||
sys.path.insert(0, str(scripts_dir))
|
||||
|
||||
import kb_proposal_review_packet as proposal_review # noqa: E402
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue