Add a setupHook so the HAREPATH environment variable is correctly set to point to the hare stdlib and any third-party libraries.main
parent
f514ac5a4a
commit
8ecf252eda
@ -0,0 +1,9 @@ |
||||
addHarepath () { |
||||
for haredir in third-party stdlib; do |
||||
if [[ -d "$1/src/hare/$haredir" ]]; then |
||||
addToSearchPath HAREPATH "$1/src/hare/$haredir" |
||||
fi |
||||
done |
||||
} |
||||
|
||||
addEnvHooks "$hostOffset" addHarepath |
Loading…
Reference in new issue