I would like to call a script named openseessp
and then pass "source test.tcl"
argument to this script.
I tried with subprocess
module but after it invoked openseessp
it exits and then runs source test.tcl
command. I need to run this without exiting the first (openseessp
):
subprocess.run(['openseessp', 'source test.tcl'], shell=True, cwd=directoryJob)
Update: for the record, the code above works. The problem was related to openseessp. I changed openseessp (single processor version) to openseesmp (multiprocessor version) and it worked.