mirror of
https://github.com/weewx/weewx.git
synced 2026-04-17 08:06:58 -04:00
10 lines
319 B
Bash
Executable File
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" "$@"
|