scripts: paths from the environment, not one disk
Browse files
scripts/build_testset_page.py
CHANGED
|
@@ -14,7 +14,9 @@ from pathlib import Path
|
|
| 14 |
|
| 15 |
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
def _sessions_note(man, runs):
|
|
@@ -55,7 +57,7 @@ def _sessions_note(man, runs):
|
|
| 55 |
|
| 56 |
def main() -> int:
|
| 57 |
ap = argparse.ArgumentParser()
|
| 58 |
-
ap.add_argument("--out", default="
|
| 59 |
args = ap.parse_args()
|
| 60 |
out = Path(args.out)
|
| 61 |
if out.exists():
|
|
|
|
| 14 |
|
| 15 |
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
| 16 |
|
| 17 |
+
from react_paths import out_root, testset_root # noqa: E402
|
| 18 |
+
|
| 19 |
+
SRC = testset_root()
|
| 20 |
|
| 21 |
|
| 22 |
def _sessions_note(man, runs):
|
|
|
|
| 57 |
|
| 58 |
def main() -> int:
|
| 59 |
ap = argparse.ArgumentParser()
|
| 60 |
+
ap.add_argument("--out", default=str(out_root("testset_page")))
|
| 61 |
args = ap.parse_args()
|
| 62 |
out = Path(args.out)
|
| 63 |
if out.exists():
|