Fix #58 - While a .. in the path shouldn't cause any problems, just avoiding it entirely

This commit is contained in:
cmdr2 2022-09-05 15:30:04 +05:30
parent 458b0150ef
commit 7d69f4d3ed
2 changed files with 8 additions and 2 deletions

View File

@ -97,7 +97,9 @@
@echo. & echo "Stable Diffusion is ready!" & echo.
@set SD_UI_PATH=%cd%\..\ui
@cd ..
@set SD_UI_PATH=%cd%\ui
@cd stable-diffusion
@uvicorn server:app --app-dir "%SD_UI_PATH%" --port 9000 --host 0.0.0.0

View File

@ -73,7 +73,11 @@ fi
printf "\n\nStable Diffusion is ready!\n\n"
export SD_UI_PATH=`pwd`/../ui
cd ..
export SD_UI_PATH=`pwd`/ui
cd stable-diffusion
uvicorn server:app --app-dir "$SD_UI_PATH" --port 9000 --host 0.0.0.0