Files
weewx/bin/weectl
2023-11-23 21:25:31 -05:00

10 lines
313 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=/usr/share/weewx
WEEWX_PYTHON=python3
[ -r /etc/default/weewx ] && . /etc/default/weewx
exec "$WEEWX_PYTHON" $WEEWX_PYTHON_ARGS "$WEEWX_BINDIR/$app" "$@"