#!/bin/sh set -e # Find the directory where this script is located. SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" # Go up one level to the project root. PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" # Set PYTHONPATH to include the project root, so we can import 'ytops_client' export PYTHONPATH="$PROJECT_ROOT${PYTHONPATH:+:$PYTHONPATH}" # Execute the Python CLI script as a module to handle relative imports exec python3 -m ytops_client.cli "$@"