Skip to content

Commit

Permalink
get ibek-support into runtime stage
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 29, 2023
1 parent 9174f07 commit 583a830
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ibek/ioc_cmds/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 583a830

Please sign in to comment.