Explicitly call python found in system (#2203)

Explicitly calls the python bin found in the system instead of calling `python` which may fail on systems where python is installed as `python3`
This commit is contained in:
Jeremy Clark 2023-01-02 08:47:01 -05:00 committed by GitHub
parent 64700b07a8
commit 9091b6e24a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ do
ROOTDIR=${input:=$HOME}/invokeai
# This is surprisingly hard to do in plain Bash; easier in ZSH. Just running python in subshell is easiest.
ROOTDIR=$(python -c "from pathlib import Path; print(Path('${ROOTDIR}').expanduser().resolve())")
ROOTDIR=$($PYTHON -c "from pathlib import Path; print(Path('${ROOTDIR}').expanduser().resolve())")
read -e -p "InvokeAI will be installed into $ROOTDIR. OK? [y]: " input
RESPONSE=${input:='y'}