Set the PYTHONPATH in the developer console, before the prompt shows up

This commit is contained in:
cmdr2
2022-11-24 11:48:27 +05:30
parent 8a0ec95fe1
commit b70235ff92
2 changed files with 21 additions and 0 deletions

View File

@ -35,6 +35,15 @@ if [ "$0" == "bash" ]; then
which python
python --version
# set the PYTHONPATH
cd stable-diffusion
SD_PATH=`pwd`
export PYTHONPATH="$SD_PATH:$SD_PATH/env/lib/python3.8/site-packages"
echo "PYTHONPATH=$PYTHONPATH"
cd ..
# done
echo ""
else
file_name=$(basename "${BASH_SOURCE[0]}")