From 4c72fa2a5a26529db3eebb235f26ddd115fab7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borb=C3=A1la=20Farkas?= Date: Mon, 28 Oct 2024 17:41:34 +0100 Subject: [PATCH] generate_model_catalog.py debug --- documentation/catalogs/generate_model_catalog.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/documentation/catalogs/generate_model_catalog.py b/documentation/catalogs/generate_model_catalog.py index c411fb79..d01dd86d 100644 --- a/documentation/catalogs/generate_model_catalog.py +++ b/documentation/catalogs/generate_model_catalog.py @@ -7,10 +7,8 @@ import sys from pathlib import Path -PATH = Path(__file__) -print(sys.path, "1") -PATH_ROOT = Path( - *[i for i in PATH.parts[:PATH.parts.index("views_pipeline") + 1]]) +PATH = Path(__file__).resolve() +PATH_ROOT = PATH.parent.parent.parent sys.path.insert(0, str(PATH_ROOT)) print(sys.path, "2") @@ -18,7 +16,7 @@ print(sys.path, "3") -from ...model_path import ModelPath +from model_path import ModelPath GITHUB_URL = 'https://github.com/prio-data/views_pipeline/blob/main/'