mirror of
https://github.com/weewx/weewx.git
synced 2026-04-19 00:56:54 -04:00
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>
10 lines
314 B
Bash
Executable File
10 lines
314 B
Bash
Executable File
#!/bin/sh
|
|
app=wee_reports
|
|
|
|
# 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" "$@"
|