From 28090376c1144ce09b70ffa5b006731eec66cfc7 Mon Sep 17 00:00:00 2001 From: Jimmy Christensen Date: Tue, 1 Oct 2024 22:33:22 +0200 Subject: [PATCH] [rqd] Remove hardcoded MAIL and HOME rqd environment variables (#1511) **Link the Issue(s) this Pull Request is related to.** Fixes #420 **Summarize your change.** Removes hardcoded environment variables specific for SPI If the variables are still needed, they can be exposed for the job again by adding them to the `[UseHostEnvVar]` section of `rqd.conf` --- rqd/rqd/rqcore.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rqd/rqd/rqcore.py b/rqd/rqd/rqcore.py index 51d669e14..a72d94c0a 100644 --- a/rqd/rqd/rqcore.py +++ b/rqd/rqd/rqcore.py @@ -98,10 +98,7 @@ def __createEnvVariables(self): self.frameEnv["CUE_GPU_MEMORY"] = str(self.rqCore.machine.getGpuMemoryFree()) self.frameEnv["SP_NOMYCSHRC"] = "1" - if platform.system() in ("Linux", "Darwin"): - self.frameEnv["MAIL"] = "/usr/mail/%s" % self.runFrame.user_name - self.frameEnv["HOME"] = "/net/homedirs/%s" % self.runFrame.user_name - elif platform.system() == "Windows": + if platform.system() == "Windows": for variable in ["SYSTEMROOT", "APPDATA", "TMP", "COMMONPROGRAMFILES", "SYSTEMDRIVE"]: if variable in os.environ: self.frameEnv[variable] = os.environ[variable]