Files
UnrealEngineUWP/Engine/Source/Programs/WebTests/WebServer/runserver.bat
lorry li 6bc43e5e73 Create python virtual environment for web server of WebTests.
#jira UE-182678
[REVIEW] [at]stephen.ma [at]rafa.lecina [at]chad.garyet [at]ryan.hummer [at]michael.kirzinger [at]michael.atchison
#rb [at]rafa.lecina

[CL 25927262 by lorry li in ue5-main branch]
2023-06-12 09:17:19 -04:00

16 lines
313 B
Batchfile
Executable File

@echo off
if exist env (
call .\env\Scripts\activate.bat
) else (
..\..\..\..\Binaries\ThirdParty\Python3\Win64\python.exe -m venv env
call .\env\Scripts\activate.bat
pip install -r requirements.txt
if %ERRORLEVEL% NEQ 0 (
rmdir /s /q env
exit %ERRORLEVEL%
)
)
python manage.py runserver 0.0.0.0:8000