#!/bin/bash # # GnommoEditor - Code-first video editing pipeline # This is a thin wrapper that activates the venv and runs the Python CLI. # # Usage: gnommo -p [action] [options] # Run with -h for full help. # SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" VENV_PYTHON="$SCRIPT_DIR/venv/bin/python" # Check for venv if [[ ! -f "$VENV_PYTHON" ]]; then echo "Error: Virtual environment not found at $SCRIPT_DIR/venv" echo "Create it with: python -m venv venv && ./venv/bin/pip install -e . openai-whisper" exit 1 fi # Pass all arguments directly to the Python CLI exec "$VENV_PYTHON" -m gnommo "$@"