hadrian: Fix `lookupInPath` on Windows (#19249)
By querying the PATH variable explicitly via getSearchPath
, we can
work around the special behavior of findExecutable
on Windows, where
it also searches in System32. Fixes #19249 (closed).
By querying the PATH variable explicitly via getSearchPath
, we can
work around the special behavior of findExecutable
on Windows, where
it also searches in System32. Fixes #19249 (closed).