Skip to content

Commit

Permalink
Fix #58 - While a .. in the path shouldn't cause any problems, just a…
Browse files Browse the repository at this point in the history
…voiding it entirely
  • Loading branch information
cmdr2 committed Sep 5, 2022
1 parent 458b015 commit 7d69f4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/on_sd_start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion scripts/on_sd_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7d69f4d

Please sign in to comment.