Files
my-pal-mcp-server/run_gemini.sh
Fahad 0c94de4ac0 docs: Major README improvements based on comprehensive review
- Add Prerequisites section for clearer setup requirements
- Add Linux support with configuration paths and examples
- Add chmod +x instruction for script execution permissions
- Add comprehensive Troubleshooting section for common issues
- Add How It Works section explaining the architecture
- Improve run_gemini.sh to handle virtual environment gracefully
- Add absolute path examples for all operating systems
- Clarify error handling for Google safety filters

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 20:48:24 +04:00

19 lines
602 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/gemini_server.py"