From 81d2eb3a8613a937fb611746f45acd2f9624bf80 Mon Sep 17 00:00:00 2001 From: Shen Jiamin Date: Sun, 14 Jun 2026 18:40:15 +0800 Subject: [PATCH] fix: only append ip_repository if directory exists config.ip_repository defaults to a subdirectory inside build_dir. Since build_dir is recreated fresh on every build, ip_repository may not exist yet. Check for its existence before appending it to the command to prevent errors. Signed-off-by: Shen Jiamin --- linker/slashkit/emit/hw/project_gen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linker/slashkit/emit/hw/project_gen.py b/linker/slashkit/emit/hw/project_gen.py index dd9fddfa..5a5c8d33 100644 --- a/linker/slashkit/emit/hw/project_gen.py +++ b/linker/slashkit/emit/hw/project_gen.py @@ -218,8 +218,11 @@ def create_build_project( str(tcl_path), "-tclargs", config.project_name, - config.ip_repository ] + + if config.ip_repository.exists(): + cmd.append(config.ip_repository) + if action: cmd.append(action)