Skip to content

Commit

Permalink
feat: use the list of env var from RQD_HOST_ENV_VARS to copy them i…
Browse files Browse the repository at this point in the history
…n the frame env.
  • Loading branch information
KernAttila committed Mar 14, 2023
1 parent 7978493 commit d1ba72c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rqd/rqd/rqcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def __createEnvVariables(self):
for variable in ["SYSTEMROOT", "APPDATA", "TMP", "COMMONPROGRAMFILES"]:
if variable in os.environ:
self.frameEnv[variable] = os.environ[variable]
for variable in rqd.rqconstants.RQD_HOST_ENV_VARS:
# Fallback to empty string, easy to spot what is missing in the log
self.frameEnv[variable] = os.environ.get(variable, '')

for key, value in self.runFrame.environment.items():
if key == 'PATH':
Expand Down

0 comments on commit d1ba72c

Please sign in to comment.