Major improvements for Windows users: - Add detailed Windows Setup Guide with native and WSL options - Create platform-specific example configurations (Windows/WSL/macOS) - Add troubleshooting section addressing common Windows/WSL errors - Create test_wsl_setup.bat diagnostic script for Windows users Script improvements: - Enhance run_gemini.bat with error handling and helpful messages - Update both run scripts to use server.py as main entry point - Keep gemini_server.py as backward compatibility wrapper Documentation: - Add clear instructions for both native Windows and WSL setups - Explain the wsl.exe bridge approach for WSL users - Include performance recommendations for WSL file access - Add specific troubleshooting for spawn ENOENT errors All tests passing, code properly formatted and linted. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
595 B
Bash
Executable File
19 lines
595 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the directory where this script is located
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Check if virtual environment exists
|
|
if [ -d "$SCRIPT_DIR/venv" ]; then
|
|
# Activate virtual environment
|
|
source "$SCRIPT_DIR/venv/bin/activate"
|
|
PYTHON_EXEC="python"
|
|
else
|
|
# Fallback to system Python if venv doesn't exist
|
|
echo "Warning: Virtual environment not found at $SCRIPT_DIR/venv" >&2
|
|
echo "Using system Python. Make sure dependencies are installed." >&2
|
|
PYTHON_EXEC="python3"
|
|
fi
|
|
|
|
# Run the server
|
|
exec "$PYTHON_EXEC" "$SCRIPT_DIR/server.py" |