Skip to content

Commit 0cc0114

Browse files
authored
invoke script cds to its location before running (invoke-ai#1805)
1 parent 1c0247d commit 0cc0114

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

binary_installer/invoke.sh.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
set -eu
44

5+
# ensure we're in the correct folder in case user's CWD is somewhere else
6+
scriptdir=$(dirname "$0")
7+
cd "$scriptdir"
8+
59
. .venv/bin/activate
610

711
# set required env var for torch on mac MPS

0 commit comments

Comments
 (0)