f4pga/wrappers/sh/pack: use Path instead of bash's mv

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-08-10 20:56:51 +02:00
parent 918e8a6c2d
commit a74239fb35
1 changed files with 2 additions and 4 deletions

View File

@ -77,10 +77,8 @@ def generate_constraints():
def pack():
print("[F4PGA] Running (deprecated) pack")
extra_args = ['--write_block_usage', 'block_usage.json'] if isQuickLogic else []
run_bash_cmds(vpr_common_cmds('pack')+f"""
run_vpr --pack {' '.join(extra_args)}
mv vpr_stdout.log pack.log
""")
run_bash_cmds(vpr_common_cmds('pack')+f"run_vpr --pack {' '.join(extra_args)}")
Path('vpr_stdout.log').rename('pack.log')
def place():