Download scripts/build_codex_package.py from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/scripts/build_codex_package.py
- Command line
-
hf download hf://SaylorTwift/codex/scripts/build_codex_package.py
-
curl -L -o build_codex_package.py https://huggingface.co/SaylorTwift/codex/resolve/main/scripts/build_codex_package.py
518 Bytes
| #!/usr/bin/env python3 | |
| """Build a canonical Codex package directory and optional archive.""" | |
| from pathlib import Path | |
| import sys | |
| # Some developer environments set PYTHONSAFEPATH=1, which prevents Python from | |
| # adding the script directory to sys.path. Add it explicitly so the local helper | |
| # package remains importable when this executable is launched from any cwd. | |
| sys.path.insert(0, str(Path(__file__).resolve().parent)) | |
| from codex_package.cli import main | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |