diff --git a/scripts/_common.sh b/scripts/_common.sh index 1bca725..407873b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -145,6 +145,11 @@ myynh_install_homeassistant () { # Upgrade the virtual environment directory myynh_upgrade_venv_directory () { + + # Remove old python links before recreating them + find "$install_dir/bin/" -type l -name 'python*' -exec bash -c 'rm -f "$1"' _ {} \; + + # Upgrade the virtual environment directory ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir" }