Skip to content

Commit

Permalink
Fix execution of python libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Mar 14, 2024
1 parent e44c3bb commit 69104af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mycodo/scripts/upgrade_commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ case "${1:-''}" in
'compile-translations')
printf "\n#### Compiling Translations\n"
cd "${MYCODO_PATH}"/mycodo || return
"${MYCODO_PATH}"/env/bin/pybabel compile -d mycodo_flask/translations
"${MYCODO_PATH}"/env/bin/python -m pybabel compile -d mycodo_flask/translations
;;
'create-files-directories')
printf "\n#### Creating files and directories\n"
Expand Down Expand Up @@ -259,7 +259,7 @@ case "${1:-''}" in
'update-alembic')
printf "\n#### Upgrading Mycodo database with alembic (if needed)\n"
cd "${MYCODO_PATH}"/alembic_db || return
"${MYCODO_PATH}"/env/bin/alembic upgrade head
"${MYCODO_PATH}"/env/bin/python -m alembic upgrade head
;;
'update-alembic-post')
printf "\n#### Executing post-alembic script\n"
Expand Down Expand Up @@ -770,7 +770,7 @@ case "${1:-''}" in
'docker-compile-translations')
printf "\n#### Compiling Translations\n"
cd "${MYCODO_PATH}"/mycodo || exit
"${MYCODO_PATH}"/env/bin/pybabel compile -d mycodo_flask/translations
"${MYCODO_PATH}"/env/bin/python -m pybabel compile -d mycodo_flask/translations
;;
'docker-update-pip')
printf "\n#### Updating pip\n"
Expand Down

0 comments on commit 69104af

Please sign in to comment.