Skip to content

Commit

Permalink
fix: restore refresh_environment (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Feb 23, 2024
2 parents 98ac7f1 + cf5c8e3 commit a27d28a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qgis_deployment_toolbelt/jobs/job_environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down Expand Up @@ -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 ------------------------------------------------------
Expand Down

0 comments on commit a27d28a

Please sign in to comment.