Skip to content

Commit

Permalink
Update endOfNight.sh: use activate_python_venv()
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Dec 12, 2023
1 parent bc94b1b commit c939520
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/endOfNight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,8 @@ if [[ ${SHOW_ON_MAP} == "true" ]]; then
"${ALLSKY_SCRIPTS}/postToMap.sh" --endofnight
fi

if [[ ${PI_OS} == "bookworm" ]]; then
#shellcheck disable=SC1090,SC1091
source "${ALLSKY_HOME}/venv/bin/activate"
${NICE} python3 "${ALLSKY_SCRIPTS}/flow-runner.py" --event nightday
deactivate
else
${NICE} python3 "${ALLSKY_SCRIPTS}/flow-runner.py" --event nightday
fi
activate_python_venv
${NICE} python3 "${ALLSKY_SCRIPTS}/flow-runner.py" --event nightday
deactivate_python_venv

exit 0

0 comments on commit c939520

Please sign in to comment.