2022-10-04 10:18:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-10-04 12:36:14 +02:00
|
|
|
if [ "$0" == "bash" ]; then
|
2022-10-10 16:08:41 +02:00
|
|
|
echo "Opening Stable Diffusion UI - Developer Console.."
|
|
|
|
echo ""
|
|
|
|
|
2022-10-04 12:36:14 +02:00
|
|
|
export SD_BASE_DIR=`pwd`
|
|
|
|
export MAMBA_ROOT_PREFIX="$SD_BASE_DIR/env/mamba"
|
|
|
|
export INSTALL_ENV_DIR="$SD_BASE_DIR/env/installer_env"
|
2022-10-10 16:36:26 +02:00
|
|
|
export PROJECT_ENV_DIR="$SD_BASE_DIR/env/project_env"
|
2022-10-04 10:18:56 +02:00
|
|
|
|
2022-10-04 12:36:14 +02:00
|
|
|
eval "$($MAMBA_ROOT_PREFIX/micromamba shell hook -s posix)"
|
2022-10-04 10:18:56 +02:00
|
|
|
|
2022-10-04 12:36:14 +02:00
|
|
|
micromamba activate "$INSTALL_ENV_DIR"
|
2022-10-10 16:36:26 +02:00
|
|
|
micromamba activate "$PROJECT_ENV_DIR"
|
2022-10-04 12:36:14 +02:00
|
|
|
else
|
2022-10-10 16:08:41 +02:00
|
|
|
bash --init-file developer_console.sh
|
2022-10-04 12:36:14 +02:00
|
|
|
fi
|