Codex
Replace the dataset with the current testing tree and the three UT docs.
d26f22a
Raw History Blame Contribute Delete
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)