Files
spark/tools/publish_data_stream_web_app.cmd
John Colvin 7d6d63365e feat: Add DataStream WebApp
Included in DataStreamSuite.sln, but not DataStreamQueryAnalyzer.sln
2025-07-23 15:21:58 -04:00

22 lines
740 B
Batchfile

@echo off
setlocal
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\VsDevCmd.bat"
set TOOLS_DIR=%~dp0
set REPO_DIR=%~dp0..
set PUBLISH_DATA_STREAM_PY=%TOOLS_DIR%\py\publish_data_stream_web_app.py
if DEFINED VIRTUAL_ENV (
@REM We're already in a venv, just run publish_data_stream_web_app.py
@REM (whether or not it is the 'right' venv is the caller's responsibility)
echo "Building in the current venv '%VIRTUAL_ENV'"
@call python %PUBLISH_DATA_STREAM_PY% %*
) else (
@REM Ensure the (default) venv is created, then run publish_data_stream_web_app.py in it
@call %TOOLS_DIR%\ensure_venv.cmd
@call %TOOLS_DIR%\venv_exec.cmd python %PUBLISH_DATA_STREAM_PY% %*
)
EXIT /B %ERRORLEVEL%