Skip to content

Commit cc918f2

Browse files
Update run_test_venv.bat
Removing venv dir if exist
1 parent 7d0cc9f commit cc918f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/run_test_venv.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REM Virtual environment test script
44
REM ======================================================
55
REM Licensed under the terms of the MIT License
66
REM Copyright (c) 2020 Pierre Raybaut
7-
REM (see LICENSE file for more details)
7+
REM (see PythonQwt LICENSE file for more details)
88
REM ======================================================
99
setlocal
1010
call %~dp0utils GetScriptPath SCRIPTPATH
@@ -22,11 +22,12 @@ exit /B %ERRORLEVEL%
2222
call %FUNC% GetLibName LIBNAME
2323
call %FUNC% ShowTitle "Testing in %~1-based Python virtual environment"
2424
set VENVPATH=%SCRIPTPATH%\..\build\testenv
25+
if exist %VENVPATH% ( rmdir /s /q %VENVPATH% )
2526
python -m venv %VENVPATH%
2627
call %VENVPATH%\Scripts\activate
2728
python -m pip install --upgrade pip
2829
pip install %~1
2930
for %%f IN ("%SCRIPTPATH%\..\dist\%LIBNAME%-*.whl") DO ( pip install %%f )
3031
call %VENVPATH%\Scripts\%LIBNAME%-tests-py3 --mode unattended
3132
call %VENVPATH%\Scripts\deactivate
32-
exit /B 0
33+
exit /B 0

0 commit comments

Comments
 (0)