Spaces:
Runtime error
Runtime error
Download scripts/project_subpath.py from caltech-fish-counting/fisheye-experimental: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/spaces/caltech-fish-counting/fisheye-experimental/resolve/main/scripts/project_subpath.py
- Command line
-
hf download hf://spaces/caltech-fish-counting/fisheye-experimental/scripts/project_subpath.py
-
curl -L -o project_subpath.py https://huggingface.co/spaces/caltech-fish-counting/fisheye-experimental/resolve/main/scripts/project_subpath.py
223 Bytes
| import sys | |
| import os | |
| current_dir = os.path.dirname(os.path.realpath(__file__)) | |
| pardir = os.path.dirname(current_dir) | |
| for d in [pardir, current_dir]: | |
| if d not in sys.path: | |
| sys.path.append(d) | |
| import project_path |