Skip to content

Commit 9cfd10c

Browse files
committed
repair #6612
1 parent 29fb532 commit 9cfd10c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

webui.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22

33
if not defined PYTHON (set PYTHON=python)
4-
if not defined VENV_DIR (set VENV_DIR=%~dp0\venv)
4+
if not defined VENV_DIR (set VENV_DIR=%~dp0%venv)
55

66
set ERROR_REPORTING=FALSE
77

@@ -13,16 +13,16 @@ echo Couldn't launch python
1313
goto :show_stdout_stderr
1414

1515
:start_venv
16-
if [%VENV_DIR%] == [-] goto :skip_venv
16+
if ["%VENV_DIR%"] == ["-"] goto :skip_venv
1717

18-
dir %VENV_DIR%\Scripts\Python.exe >tmp/stdout.txt 2>tmp/stderr.txt
18+
dir "%VENV_DIR%\Scripts\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt
1919
if %ERRORLEVEL% == 0 goto :activate_venv
2020

2121
for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
2222
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
23-
%PYTHON_FULLNAME% -m venv %VENV_DIR% >tmp/stdout.txt 2>tmp/stderr.txt
23+
%PYTHON_FULLNAME% -m venv "%VENV_DIR%" >tmp/stdout.txt 2>tmp/stderr.txt
2424
if %ERRORLEVEL% == 0 goto :activate_venv
25-
echo Unable to create venv in directory %VENV_DIR%
25+
echo Unable to create venv in directory "%VENV_DIR%"
2626
goto :show_stdout_stderr
2727

2828
:activate_venv

0 commit comments

Comments
 (0)