Open the developer console on windows, and print some debugging info

This commit is contained in:
cmdr2 2022-10-29 23:26:21 +05:30
parent 4134e2e9da
commit c49d9c2611
2 changed files with 11 additions and 3 deletions

View File

@ -8,17 +8,22 @@ call conda activate invokeai
echo Do you want to generate images using the
echo 1. command-line
echo 2. browser-based UI
set /P restore="Please enter 1 or 2: "
echo 3. open the developer console
set /P restore="Please enter 1, 2 or 3: "
IF /I "%restore%" == "1" (
echo Starting the InvokeAI command-line..
python scripts\invoke.py
) ELSE IF /I "%restore%" == "2" (
echo Starting the InvokeAI browser-based UI..
python scripts\invoke.py --web
) ELSE IF /I "%restore%" == "3" (
echo Developer Console
call where python
call python --version
cmd /k
) ELSE (
echo Invalid selection
pause
exit /b
)
cmd /k

View File

@ -22,4 +22,7 @@ if [ "$0" != "bash" ]; then
3 ) printf "\nDeveloper Console:\n"; file_name=$(basename "${BASH_SOURCE[0]}"); bash --init-file "$file_name";;
* ) echo "Invalid selection"; exit;;
esac
else
which python
python --version
fi