Skip to content

Commit 8b39636

Browse files
authored
[RQD][FIX] Remove code duplication (#2123)
**Summary** Remove code logic duplication in rqcore env vars setting. The two sections removed are repeated before and after them.
1 parent ce61412 commit 8b39636

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

rqd/rqd/rqcore.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -781,15 +781,7 @@ def __createEnvVariables(self):
781781
for variable in ["SYSTEMROOT", "APPDATA", "TMP", "COMMONPROGRAMFILES", "SYSTEMDRIVE"]:
782782
if variable in os.environ:
783783
self.frameEnv[variable] = os.environ[variable]
784-
for variable in rqd.rqconstants.RQD_HOST_ENV_VARS:
785-
# Fallback to empty string, easy to spot what is missing in the log
786-
self.frameEnv[variable] = os.environ.get(variable, '')
787784

788-
789-
if platform.system() == "Windows":
790-
for variable in ["SYSTEMROOT", "APPDATA", "TMP", "COMMONPROGRAMFILES", "SYSTEMDRIVE"]:
791-
if variable in os.environ:
792-
self.frameEnv[variable] = os.environ[variable]
793785
if rqd.rqconstants.RQD_HOST_ENV_VARS:
794786
for variable in rqd.rqconstants.RQD_HOST_ENV_VARS:
795787
# Fallback to empty string, easy to spot what is missing in the log

0 commit comments

Comments
 (0)