Skip to content

Commit

Permalink
Feature: RQD command expand env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilix4 committed Oct 20, 2023
1 parent 6703e07 commit 72cee3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rqd/rqd/rqcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,18 @@ def __createEnvVariables(self):

def _createCommandFile(self, command):
"""Creates a file that subprocess. Popen then executes.
Environment variables are expanded before writing the file.
@type command: string
@param command: The command specified in the runFrame request
@rtype: string
@return: Command file location"""
# TODO: this should use tempfile to create the files and clean them up afterwards

# Expand environment variables
command = os.path.expandvars(command)

try:
if platform.system() == "Windows":
rqd_tmp_dir = os.path.join(tempfile.gettempdir(), 'rqd')
Expand Down

0 comments on commit 72cee3b

Please sign in to comment.