Spaces:
Sleeping
Sleeping
Download scripts/_bootstrap.py from darshhh32/nutrivision-ai: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/darshhh32/nutrivision-ai/resolve/main/scripts/_bootstrap.py
- Command line
-
hf download hf://spaces/darshhh32/nutrivision-ai/scripts/_bootstrap.py
-
curl -L -o _bootstrap.py https://huggingface.co/spaces/darshhh32/nutrivision-ai/resolve/main/scripts/_bootstrap.py
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)) | |