Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some changes to
spack_root_to_path
(ukri-excalibur#342)
* Add comments to improve clarity of all the conditions considered * There were unnecessary `else` branches * Cater for the dramatic case where both `SPACK_ROOT` and `PATH` are not set * Fix the case where `PATH` isn't set but `SPACK_ROOT` is (we were returning the function `dir` before, fun) * Fix the case where `spack_bindir` isn't in `PATH` (we were using `*` for non-commutative concatenation of strings, it turns out in Python one should use `+` instead for this operation)
- Loading branch information