yxma commited on
Commit
eac11c6
·
verified ·
1 Parent(s): b6fe757

scripts: paths from the environment, not one disk

Browse files
Files changed (1) hide show
  1. scripts/react_paths.py +10 -0
scripts/react_paths.py CHANGED
@@ -63,3 +63,13 @@ def require(path: Path, what: str, env: str) -> Path:
63
  f"(REACT_RAW is the original HDF5 capture tree, which the release "
64
  f"does not publish — steps needing it are marked in the README.)")
65
  return Path(path)
 
 
 
 
 
 
 
 
 
 
 
63
  f"(REACT_RAW is the original HDF5 capture tree, which the release "
64
  f"does not publish — steps needing it are marked in the README.)")
65
  return Path(path)
66
+
67
+
68
+ def out_root(name: str) -> Path:
69
+ """Where a build script writes its artefacts.
70
+
71
+ `REACT_OUT` or the working layout. Build scripts wrote to absolute paths
72
+ on one disk, which made them unpublishable: a reader could run them and
73
+ get a permission error rather than a page.
74
+ """
75
+ return Path(os.environ.get("REACT_OUT", "/media/yxma/Disk1/twm")) / name