Files
weewx/bin/weectl

10 lines
319 B
Bash
Executable File

#!/bin/sh
app=weectl.py
# Get the weewx location and interpreter. Default to something sane, but
# look for overrides from the system defaults.
WEEWX_BINDIR=$(dirname "$0")/../src
WEEWX_PYTHON=python3
[ -r /etc/default/weewx ] && . /etc/default/weewx
exec "$WEEWX_PYTHON" $WEEWX_PYTHON_ARGS "$WEEWX_BINDIR/$app" "$@"