Developer console, to enter the activated conda environment easily for debugging and fixing the environnment

This commit is contained in:
cmdr2 2022-10-06 10:37:41 +05:30
parent 4a85296e23
commit 9321dfdd89
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,14 @@
@echo off
echo "Opening Stable Diffusion UI - Developer Console.." & echo.
@call installer\Scripts\activate.bat
@call conda-unpack
@call conda --version
@call git --version
@call conda activate .\stable-diffusion\env
cmd /k

View File

@ -55,6 +55,7 @@ if "%update_branch%"=="" (
@xcopy sd-ui-files\ui ui /s /i /Y
@copy sd-ui-files\scripts\on_sd_start.bat scripts\ /Y
@copy "sd-ui-files\scripts\Start Stable Diffusion UI.cmd" . /Y
@copy "sd-ui-files\scripts\Open Developer Console.cmd" . /Y
@call scripts\on_sd_start.bat

View File

@ -37,6 +37,7 @@ rm -rf ui
cp -Rf sd-ui-files/ui .
cp sd-ui-files/scripts/on_sd_start.sh scripts/
cp sd-ui-files/scripts/start.sh .
cp sd-ui-files/scripts/open_dev_console.sh .
./scripts/on_sd_start.sh

View File

@ -0,0 +1,17 @@
#!/bin/bash
if [ "$0" == "bash" ]; then
echo "Opening Stable Diffusion UI - Developer Console.."
echo ""
source installer/bin/activate
conda-unpack
conda --version
git --version
conda activate ./stable-diffusion/env
else
bash --init-file open_dev_console.sh
fi