Skip to content

Commit

Permalink
[rqd] Add some missing env vars on Windows. (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeebook authored Jan 10, 2023
1 parent 133687d commit a4a9cd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rqd/rqd/rqcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def __createEnvVariables(self):
self.frameEnv["MAIL"] = "/usr/mail/%s" % self.runFrame.user_name
self.frameEnv["HOME"] = "/net/homedirs/%s" % self.runFrame.user_name
elif platform.system() == "Windows":
self.frameEnv["APPDATA"] = os.environ["APPDATA"]
self.frameEnv["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
for variable in ["SYSTEMROOT", "APPDATA", "TMP", "COMMONPROGRAMFILES"]:
if variable in os.environ:
self.frameEnv[variable] = os.environ[variable]

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

0 comments on commit a4a9cd1

Please sign in to comment.