From cf5c8e30f343398d5bba3a4e44cd4d2b4313fe77 Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Fri, 23 Feb 2024 17:15:56 +0100 Subject: [PATCH] fix: restore refresh_envronment --- qgis_deployment_toolbelt/jobs/job_environment_variables.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 ------------------------------------------------------