Fix syntax error. Enable script echo on -v -v.

This commit is contained in:
mrg 2020-11-30 09:38:42 -08:00
parent 59c6980052
commit e817b02ade
1 changed files with 2 additions and 3 deletions

View File

@ -19,8 +19,7 @@ from globals import OPTS
def run_script(cell_name, script="lvs"):
""" Run script and create output files. """
# FIXME: Set this value based on options somewhere
echo_cmd_output = True
echo_cmd_output = OPTS.verbose_level > 1
cwd = os.getcwd()
os.chdir(OPTS.openram_temp)
@ -62,7 +61,7 @@ def run_script(cell_name, script="lvs"):
p.wait()
# Kill the tail commands if they haven't finished.
if cmd_output:
if echo_cmd_output:
if tailo.poll() != None:
tailo.kill()
tailo.wait()