mirror of https://github.com/VLSIDA/OpenRAM.git
Use subprocess.run instead of subprocess.call
This commit is contained in:
parent
b9123571f4
commit
217b0981a2
|
|
@ -412,12 +412,12 @@ class stimuli():
|
||||||
from openram import CONDA_HOME
|
from openram import CONDA_HOME
|
||||||
cmd = "source {0}/bin/activate && {1} && conda deactivate".format(CONDA_HOME, cmd)
|
cmd = "source {0}/bin/activate && {1} && conda deactivate".format(CONDA_HOME, cmd)
|
||||||
debug.info(2, cmd)
|
debug.info(2, cmd)
|
||||||
retcode = subprocess.call(cmd, stdout=spice_stdout, stderr=spice_stderr, shell=True)
|
proc = subprocess.run(cmd, stdout=spice_stdout, stderr=spice_stderr, shell=True)
|
||||||
|
|
||||||
spice_stdout.close()
|
spice_stdout.close()
|
||||||
spice_stderr.close()
|
spice_stderr.close()
|
||||||
|
|
||||||
if (retcode > valid_retcode):
|
if (proc.returncode > valid_retcode):
|
||||||
debug.error("Spice simulation error: " + cmd, -1)
|
debug.error("Spice simulation error: " + cmd, -1)
|
||||||
else:
|
else:
|
||||||
end_time = datetime.datetime.now()
|
end_time = datetime.datetime.now()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue