Skip to content

Commit

Permalink
invoke script cds to its location before running (#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein authored Dec 5, 2022
1 parent 1c0247d commit 0cc0114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions binary_installer/invoke.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 0cc0114

@Pasaelpasa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. .venv/bin/activate

Please sign in to comment.