Skip to content

Commit

Permalink
import debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Borbála Farkas authored and Borbála Farkas committed Oct 28, 2024
1 parent 818b54d commit 6759e42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_if_new_model_added.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: .
fetch-depth: 0

- name: Check for new directories and generate catalog if models directory has changed
Expand Down
7 changes: 5 additions & 2 deletions documentation/catalogs/generate_model_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@

import sys
from pathlib import Path
PATH = Path(__file__).resolve()
PATH_ROOT = PATH.parent.parent.parent

PATH = Path(__file__)
print(sys.path, "1")
PATH_ROOT = Path(
*[i for i in PATH.parts[:PATH.parts.index("views_pipeline") + 1]])

sys.path.insert(0, str(PATH_ROOT))
print(sys.path, "2")
Expand Down

0 comments on commit 6759e42

Please sign in to comment.