From e2c8584f753b6fe8116f3032360a3b02e8398349 Mon Sep 17 00:00:00 2001 From: Vladimir Repin <32306715+mezotaken@users.noreply.github.com> Date: Tue, 10 Jan 2023 22:26:49 +0300 Subject: [PATCH] make VENV envvar accept absolute path instead of relative --- webui.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui.bat b/webui.bat index d4d626e2..3a3e310a 100644 --- a/webui.bat +++ b/webui.bat @@ -1,7 +1,7 @@ @echo off if not defined PYTHON (set PYTHON=python) -if not defined VENV_DIR (set VENV_DIR=venv) +if not defined VENV_DIR (set VENV_DIR=%~dp0\venv) set ERROR_REPORTING=FALSE @@ -26,7 +26,7 @@ echo Unable to create venv in directory %VENV_DIR% goto :show_stdout_stderr :activate_venv -set PYTHON="%~dp0%VENV_DIR%\Scripts\Python.exe" +set PYTHON="%VENV_DIR%\Scripts\Python.exe" echo venv %PYTHON% if [%ACCELERATE%] == ["True"] goto :accelerate goto :launch @@ -35,7 +35,7 @@ goto :launch :accelerate echo "Checking for accelerate" -set ACCELERATE="%~dp0%VENV_DIR%\Scripts\accelerate.exe" +set ACCELERATE="%VENV_DIR%\Scripts\accelerate.exe" if EXIST %ACCELERATE% goto :accelerate_launch :launch