Skip to content

Commit

Permalink
[rqd] Remove hardcoded MAIL and HOME rqd environment variables (Acade…
Browse files Browse the repository at this point in the history
…mySoftwareFoundation#1511)

**Link the Issue(s) this Pull Request is related to.**
Fixes AcademySoftwareFoundation#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`
  • Loading branch information
lithorus authored Oct 1, 2024
1 parent 380dbfe commit 2809037
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rqd/rqd/rqcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2809037

Please sign in to comment.