From 583a8304e8d3df9a245900433c45226e906d9b8e Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 29 Sep 2023 17:33:11 +0100 Subject: [PATCH] get ibek-support into runtime stage --- src/ibek/ioc_cmds/assets.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ibek/ioc_cmds/assets.py b/src/ibek/ioc_cmds/assets.py index 4b0d45c81..06dcd9a3d 100644 --- a/src/ibek/ioc_cmds/assets.py +++ b/src/ibek/ioc_cmds/assets.py @@ -5,7 +5,7 @@ import typer -from ibek.globals import IOC_FOLDER, SYMLINKS +from ibek.globals import EPICS_ROOT, IOC_FOLDER, SYMLINKS def move_file(src: Path, dest: Path, binary: List[str]): @@ -41,8 +41,14 @@ def extract_assets(destination: Path, source: Path, extras: List[Path], defaults """ asset_matches = "bin|configure|db|dbd|include|lib|template|config|*.sh" + try: + ibek_support = list(EPICS_ROOT.glob("*/ibek-support"))[0] + except IndexError: + raise RuntimeError(f"Could not find ibek-support in {EPICS_ROOT}") + just_copy = ( [ + ibek_support, source / "support" / "configure", SYMLINKS, IOC_FOLDER,