Fix for execute_shell_popen using WORKING_DIRECTORY

Looks like things got changed to WORKSPACE_PATH recently?
This commit is contained in:
Eugene Zolenko
2023-04-17 23:02:07 -06:00
committed by GitHub
parent 67846bad21
commit a88113de33

View File

@@ -125,10 +125,9 @@ def execute_shell_popen(command_line) -> str:
str: Description of the fact that the process started and its id str: Description of the fact that the process started and its id
""" """
current_dir = os.getcwd() current_dir = os.getcwd()
# Change dir into workspace if necessary
if WORKING_DIRECTORY not in current_dir: # Change dir into workspace if necessary if str(WORKSPACE_PATH) not in current_dir:
work_dir = os.path.join(os.getcwd(), WORKING_DIRECTORY) os.chdir(WORKSPACE_PATH)
os.chdir(work_dir)
print(f"Executing command '{command_line}' in working directory '{os.getcwd()}'") print(f"Executing command '{command_line}' in working directory '{os.getcwd()}'")