@echo off setlocal cd /d "%~dp0\.." if exist ".venv\Scripts\python.exe" ( .venv\Scripts\python.exe scripts\start_celery_worker.py ) else ( python scripts\start_celery_worker.py ) endlocal