From c49d9c26119e56c960f9ad3e280152270b77d927 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Sat, 29 Oct 2022 23:26:21 +0530 Subject: [PATCH] Open the developer console on windows, and print some debugging info --- invoke.bat | 11 ++++++++--- invoke.sh | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/invoke.bat b/invoke.bat index 617707d17d..62a1adb7c6 100644 --- a/invoke.bat +++ b/invoke.bat @@ -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 diff --git a/invoke.sh b/invoke.sh index 695fccb625..22c754583c 100755 --- a/invoke.sh +++ b/invoke.sh @@ -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