#!/bin/sh # SPDX-License-Identifier: GPL-3.0-or-later # Launcher for the Enodia Sentinel Python package. # Computes the install prefix from its own location so it works whether # installed under /usr or /usr/local, with no pip/site-packages involvement. here=$(dirname "$(readlink -f "$0")") # .../bin prefix=${here%/bin} export PYTHONPATH="${prefix}/lib/enodia-sentinel:${PYTHONPATH}" exec python3 -B -m enodia_sentinel.cli "$@"