From 0e6c95c05929ed72a0576ef675817fbc06f053d3 Mon Sep 17 00:00:00 2001 From: Jimmy Christensen Date: Tue, 17 Sep 2024 20:21:17 +0200 Subject: [PATCH] Remove hardcoded MAIL and HOME rqd environment variables --- 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]