Files
weewx/util/scripts/wee_config
Kevin Locke b3a24a5102 Add $WEEWX_PYTHON_ARGS for python arguments (#708)
Since arguments can no longer be passed to python in `$WEEWX_PYTHON`,
add `$WEEWX_PYTHON_ARGS` for passing [python options], as requested
in https://github.com/weewx/weewx/pull/706#issuecomment-947481005

[python options]: https://docs.python.org/3/using/cmdline.html#miscellaneous-options

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2021-10-22 05:41:34 -07:00

10 lines
313 B
Bash
Executable File

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