nutrivision-ai / scripts /_bootstrap.py
NAVANEETH Y
NutriVision AI — deploy to Hugging Face Space (model via Git LFS)
c0afe44
Raw History Blame Contribute Delete
334 Bytes
"""Path bootstrap shared by the CLI scripts.
Ensures ``src/`` is importable even when the package was not installed via
``pip install -e .``. Import this first in every script.
"""
import sys
from pathlib import Path
_SRC = Path(__file__).resolve().parents[1] / "src"
if str(_SRC) not in sys.path:
sys.path.insert(0, str(_SRC))