Download core/bootstrap.py from Surajnitp/flowmarg: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/spaces/Surajnitp/flowmarg/resolve/main/core/bootstrap.py
- Command line
-
hf download hf://spaces/Surajnitp/flowmarg/core/bootstrap.py
-
curl -L -o bootstrap.py https://huggingface.co/spaces/Surajnitp/flowmarg/resolve/main/core/bootstrap.py
232 Bytes
| """Ensure the repository root is on sys.path (single insert location).""" | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parent.parent | |
| _root = str(ROOT) | |
| if _root not in sys.path: | |
| sys.path.insert(0, _root) | |