mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 14:22:04 +00:00
start_ui.sh and start_ui.bat were using system Python directly, causing ModuleNotFoundError for dotenv. Now they create and activate the venv before running, matching the pattern in start.sh. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
813 B
Batchfile
38 lines
813 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
REM AutoCoder UI Launcher for Windows
|
|
REM This script launches the web UI for the autonomous coding agent.
|
|
|
|
echo.
|
|
echo ====================================
|
|
echo AutoCoder UI
|
|
echo ====================================
|
|
echo.
|
|
|
|
REM Check if Python is available
|
|
where python >nul 2>&1
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo ERROR: Python not found in PATH
|
|
echo Please install Python from https://python.org
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Check if venv exists, create if not
|
|
if not exist "venv" (
|
|
echo Creating virtual environment...
|
|
python -m venv venv
|
|
)
|
|
|
|
REM Activate the virtual environment
|
|
call venv\Scripts\activate.bat
|
|
|
|
REM Install dependencies
|
|
echo Installing dependencies...
|
|
pip install -r requirements.txt --quiet
|
|
|
|
REM Run the Python launcher
|
|
python "%~dp0start_ui.py" %*
|
|
|
|
pause
|