Download testing/agent_evaluation/evaluators/tool_paths.py from yuhanqin/ut-evaluation: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/evaluators/tool_paths.py
- Command line
-
hf download hf://datasets/yuhanqin/ut-evaluation/testing/agent_evaluation/evaluators/tool_paths.py
-
curl -L -o tool_paths.py https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/evaluators/tool_paths.py
1.05 kB
| """Locations of the UVS toolchain. | |
| These are the only absolute tool paths in the evaluators. Override them on | |
| another machine with the environment variables below, or edit the defaults in | |
| this file. The generated Makefile must name the same paths. | |
| """ | |
| from __future__ import annotations | |
| import os | |
| from pathlib import Path | |
| def uvs_root() -> Path: | |
| """Versioned UVS install. ``installed_uvs_version`` reads ``20*`` under it.""" | |
| return Path(os.environ.get("UT_UVS_ROOT", "/software/univista/uvs")) | |
| def csh_path() -> Path: | |
| """csh used to source the UVS module setup.""" | |
| return Path(os.environ.get("UT_CSH", "/bin/csh")) | |
| def modules_cshrc() -> Path: | |
| """Module init file sourced before ``ma uvs``.""" | |
| return Path(os.environ.get("UT_MODULES_CSHRC", "/software/hicad/cshrc/cshrc.modules")) | |
| def bug_case_root() -> Path | None: | |
| """Directory that contains the eight ``bug_case_ut`` cases. No default path.""" | |
| raw = os.environ.get("UT_BUG_CASE_ROOT", "").strip() | |
| if not raw: | |
| return None | |
| return Path(raw) | |