diff --git a/binary_installer/invoke.sh.in b/binary_installer/invoke.sh.in index b131b4ae2f..9a2aae6707 100644 --- a/binary_installer/invoke.sh.in +++ b/binary_installer/invoke.sh.in @@ -2,6 +2,10 @@ set -eu +# ensure we're in the correct folder in case user's CWD is somewhere else +scriptdir=$(dirname "$0") +cd "$scriptdir" + . .venv/bin/activate # set required env var for torch on mac MPS