#!/usr/bin/env bash
# Nordic Logger Wrapper
# Hides the internal Python script path from user-facing surfaces
# This wrapper is called instead of directly invoking python3 with the script path

# Get the directory where this script lives
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Execute the Python script with all arguments passed through
# PYTHONNOUSERSITE=1 isolates from user-site .pth conflicts (see CLAUDE.md, bug B1).
exec env PYTHONNOUSERSITE=1 python3 "${SCRIPT_DIR}/nrf_uart_logger.py" "$@"
