Download code/src/seer_replay/paths.py from namezz/seer-agent-traces: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/datasets/namezz/seer-agent-traces/resolve/main/code/src/seer_replay/paths.py
- Command line
-
hf download hf://datasets/namezz/seer-agent-traces/code/src/seer_replay/paths.py
-
curl -L -o paths.py https://huggingface.co/datasets/namezz/seer-agent-traces/resolve/main/code/src/seer_replay/paths.py
683 Bytes
| """Portable roots; no original cluster directory is required.""" | |
| import argparse | |
| from pathlib import Path | |
| def paths(): | |
| p = argparse.ArgumentParser() | |
| p.add_argument( | |
| "--data-dir", type=Path, required=True, help="HF dataset replay/ directory" | |
| ) | |
| p.add_argument("--output-dir", type=Path, required=True) | |
| a = p.parse_args() | |
| data = a.data_dir.resolve() | |
| out = a.output_dir.resolve() | |
| if not data.is_dir(): | |
| p.error("Data directory does not exist: " + str(data)) | |
| if out == data or data in out.parents: | |
| p.error("Outputs must be outside the immutable data directory") | |
| out.mkdir(parents=True, exist_ok=True) | |
| return data, out | |