From e6b7f346ce1c3ad6dcb71055f7a892cf29f645c9 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Mon, 5 Sep 2022 03:27:50 +0200 Subject: [PATCH] f4pga/utils/xc7/create_place_constraints: fix reading stdout of subprocess_run Signed-off-by: Unai Martinez-Corral --- f4pga/utils/xc7/create_place_constraints.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/f4pga/utils/xc7/create_place_constraints.py b/f4pga/utils/xc7/create_place_constraints.py index f6b9e4f..5ee85d9 100644 --- a/f4pga/utils/xc7/create_place_constraints.py +++ b/f4pga/utils/xc7/create_place_constraints.py @@ -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,