From c269c2b760695055b7e443b90dc682bd96d755ed Mon Sep 17 00:00:00 2001 From: Phi Date: Thu, 21 May 2026 19:25:12 +0200 Subject: [PATCH] fix: foc-wg PR notifier workflow --- foc_wg_pr_notifier.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/foc_wg_pr_notifier.py b/foc_wg_pr_notifier.py index 85d8d6a..0827ac5 100644 --- a/foc_wg_pr_notifier.py +++ b/foc_wg_pr_notifier.py @@ -22,9 +22,11 @@ import argparse _REPO_ROOT = os.path.dirname(os.path.abspath(__file__)) +_GITHUB_PROJECTS_CLIENT_DIR = os.path.join(_REPO_ROOT, "github-projects-client") _FOC_PR_REPORT_DIR = os.path.join(_REPO_ROOT, "foc-pr-report") -if _FOC_PR_REPORT_DIR not in sys.path: - sys.path.insert(0, _FOC_PR_REPORT_DIR) +for _LOCAL_IMPORT_DIR in (_GITHUB_PROJECTS_CLIENT_DIR, _FOC_PR_REPORT_DIR): + if _LOCAL_IMPORT_DIR not in sys.path: + sys.path.insert(0, _LOCAL_IMPORT_DIR) from foc_pr_report.pr_enrichment import ( # noqa: E402 fetch_project_board_items_rest_filtered,