Spaces:
Sleeping
Sleeping
Download __init__.py from bchoudha/C7HackathonGroup4: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/bchoudha/C7HackathonGroup4/resolve/main/__init__.py
- Command line
-
hf download hf://spaces/bchoudha/C7HackathonGroup4/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/bchoudha/C7HackathonGroup4/resolve/main/__init__.py
415 Bytes
| import sys | |
| import os | |
| # Resolve the project root directory | |
| root_dir = os.path.dirname(os.path.abspath(__file__)) | |
| # Remove root_dir from sys.path to prevent local 'agents' folder from shadowing the third-party 'agents' package | |
| sys.path = [p for p in sys.path if os.path.abspath(p) != root_dir] | |
| # Also remove empty/dot paths if they refer to the root | |
| sys.path = [p for p in sys.path if p not in ("", ".")] | |