f4pga/utils/xc7/create_place_constraints: fix reading stdout of subprocess_run

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-09-05 03:27:50 +02:00
parent 153ba52cc3
commit e6b7f346ce
1 changed files with 3 additions and 1 deletions

View File

@ -1127,7 +1127,9 @@ def main(
net=Path(net).open("r"),
vpr_grid_map=vpr_grid_map,
arch=arch,
db_root=environ.get("DATABASE_DIR", subprocess_run("prjxray-config", capture_output=True))
db_root=environ.get(
"DATABASE_DIR", subprocess_run("prjxray-config", capture_output=True).stdout.decode("utf-8").strip()
)
if db_root is None
else db_root,
part=part,