diff --git a/qgis_deployment_toolbelt/jobs/job_environment_variables.py b/qgis_deployment_toolbelt/jobs/job_environment_variables.py index 03131f2b..7dedb909 100644 --- a/qgis_deployment_toolbelt/jobs/job_environment_variables.py +++ b/qgis_deployment_toolbelt/jobs/job_environment_variables.py @@ -29,11 +29,13 @@ if opersys == "linux": from qgis_deployment_toolbelt.utils.linux_utils import ( delete_environment_variable, + refresh_environment, set_environment_variable, ) elif opersys == "win32": from qgis_deployment_toolbelt.utils.win32utils import ( delete_environment_variable, + refresh_environment, set_environment_variable, ) @@ -137,6 +139,10 @@ def run(self) -> None: f"Variable name '{env_var.get('name')}' is not defined" ) + # refresh environment to update variables + refresh_environment() + + # log logger.debug(f"Job {self.ID} ran successfully.") # -- INTERNAL LOGIC ------------------------------------------------------