diff options
Diffstat (limited to 'tools/manage.cmd')
-rw-r--r-- | tools/manage.cmd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/manage.cmd b/tools/manage.cmd new file mode 100644 index 0000000..fce913d --- /dev/null +++ b/tools/manage.cmd @@ -0,0 +1,15 @@ +@echo off + +set PYTHON=py -3 +%PYTHON% --version >NUL 2>&1 || ( + echo Error: failed to run Python with py -3 --version. + exit 1 +) + +set TOOLS_DIR=%~dp0 +set PROJECT_DIR=%TOOLS_DIR%.. + +cd /d "%PROJECT_DIR%" + +set PYTHONPATH=%PROJECT_DIR%\tools\cru-py;%PYTHONPATH% +%PYTHON% -m cru.service --project-dir "%PROJECT_DIR%" %* |