diff --git a/openfpga_flow/scripts/run_fpga_task.conf b/openfpga_flow/scripts/run_fpga_task.conf index 2ccf44927..de0dac668 100644 --- a/openfpga_flow/scripts/run_fpga_task.conf +++ b/openfpga_flow/scripts/run_fpga_task.conf @@ -1,4 +1,5 @@ [GENERAL CONFIGURATION] task_dir=${PATH:OPENFPGA_PATH}/openfpga_flow/tasks misc_dir=${PATH:OPENFPGA_PATH}/openfpga_flow/misc +python_path=python3.5 script_default=${PATH:OPENFPGA_PATH}/openfpga_flow/scripts/run_fpga_flow.py diff --git a/openfpga_flow/scripts/run_fpga_task.py b/openfpga_flow/scripts/run_fpga_task.py index 62f1de6cc..4a13184a0 100644 --- a/openfpga_flow/scripts/run_fpga_task.py +++ b/openfpga_flow/scripts/run_fpga_task.py @@ -326,9 +326,13 @@ def run_single_script(s, eachJob): try: logfile = "%s_out.log" % name with open(logfile, 'w+') as output: - process = subprocess.Popen(["python3.5", - gc["script_default"]] + - eachJob["commands"], + output.write("* "*20 + '\n') + output.write("RunDirectory : %s\n" % os.getcwd()) + command = [gc["python_path"], gc["script_default"]] + \ + eachJob["commands"] + output.write(" ".join(command) + '\n') + output.write("* "*20 + '\n') + process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)