diff --git a/binary_installer/install.bat.in b/binary_installer/install.bat.in index d2c8b49096..eee032bb0f 100644 --- a/binary_installer/install.bat.in +++ b/binary_installer/install.bat.in @@ -19,7 +19,6 @@ if "%1" == "use-cache" ( ) echo ***** Installing InvokeAI.. ***** -echo "USING development BRANCH. REMEMBER TO CHANGE TO main BEFORE RELEASE" @rem Config set INSTALL_ENV_DIR=%cd%\installer_files\env @rem https://mamba.readthedocs.io/en/latest/installation.html diff --git a/binary_installer/invoke.bat.in b/binary_installer/invoke.bat.in index 0f9fb5b26a..a120ed75a5 100644 --- a/binary_installer/invoke.bat.in +++ b/binary_installer/invoke.bat.in @@ -1,5 +1,6 @@ @echo off +PUSHD "%~dp0" call .venv\Scripts\activate.bat echo Do you want to generate images using the @@ -10,10 +11,10 @@ echo 3. open the developer console set /p choice="Please enter 1, 2 or 3: " if /i "%choice%" == "1" ( echo Starting the InvokeAI command-line. - .venv\Scripts\python scripts\invoke.py + .venv\Scripts\python scripts\invoke.py %* ) else if /i "%choice%" == "2" ( echo Starting the InvokeAI browser-based UI. - .venv\Scripts\python scripts\invoke.py --web + .venv\Scripts\python scripts\invoke.py --web %* ) else if /i "%choice%" == "3" ( echo Developer Console echo Python command is: diff --git a/binary_installer/invoke.sh.in b/binary_installer/invoke.sh.in index 6863f70072..b131b4ae2f 100644 --- a/binary_installer/invoke.sh.in +++ b/binary_installer/invoke.sh.in @@ -20,11 +20,11 @@ read choice case $choice in 1) printf "\nStarting the InvokeAI command-line..\n"; - .venv/bin/python scripts/invoke.py; + .venv/bin/python scripts/invoke.py $*; ;; 2) printf "\nStarting the InvokeAI browser-based UI..\n"; - .venv/bin/python scripts/invoke.py --web; + .venv/bin/python scripts/invoke.py --web $*; ;; 3) printf "\nDeveloper Console:\n"; diff --git a/source_installer/invoke.bat.in b/source_installer/invoke.bat.in index 62a1adb7c6..413aa45f4b 100644 --- a/source_installer/invoke.bat.in +++ b/source_installer/invoke.bat.in @@ -1,5 +1,6 @@ @echo off +PUSHD "%~dp0" set INSTALL_ENV_DIR=%cd%\installer_files\env set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%INSTALL_ENV_DIR%\Library\usr\bin;%PATH% @@ -12,10 +13,10 @@ 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 + python scripts\invoke.py %* ) ELSE IF /I "%restore%" == "2" ( echo Starting the InvokeAI browser-based UI.. - python scripts\invoke.py --web + python scripts\invoke.py --web %* ) ELSE IF /I "%restore%" == "3" ( echo Developer Console call where python diff --git a/source_installer/invoke.sh.in b/source_installer/invoke.sh.in index 7b0bd62023..d2c9d1b0a5 100755 --- a/source_installer/invoke.sh.in +++ b/source_installer/invoke.sh.in @@ -22,8 +22,8 @@ if [ "$0" != "bash" ]; then echo "3. open the developer console" read -p "Please enter 1, 2, or 3: " yn case $yn in - 1 ) printf "\nStarting the InvokeAI command-line..\n"; python scripts/invoke.py;; - 2 ) printf "\nStarting the InvokeAI browser-based UI..\n"; python scripts/invoke.py --web;; + 1 ) printf "\nStarting the InvokeAI command-line..\n"; python scripts/invoke.py $*;; + 2 ) printf "\nStarting the InvokeAI browser-based UI..\n"; python scripts/invoke.py --web $*;; 3 ) printf "\nDeveloper Console:\n"; file_name=$(basename "${BASH_SOURCE[0]}"); bash --init-file "$file_name";; * ) echo "Invalid selection"; exit;; esac