Skip to content

Commit

Permalink
move ibek yaml files to /epics/ibek
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Oct 30, 2023
1 parent ea9da7e commit f7d82de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
logo=dict(
text=project,
),
navigation_with_keys=True,
use_edit_page_button=True,
github_url=f"https://github.com/{github_user}/{github_repo}",
icon_links=[
Expand Down
3 changes: 1 addition & 2 deletions src/ibek/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@

# Folder containing templates for IOC src etc.
TEMPLATES = Path(__file__).parent / "templates"
# Folder containing symlinks to useful files
SYMLINKS = EPICS_ROOT / "links"
IBEK_FILES = EPICS_ROOT / "ibek"

IOC_DBDS = SUPPORT / "configure/dbd_list"
IOC_LIBS = SUPPORT / "configure/lib_list"
Expand Down
4 changes: 2 additions & 2 deletions src/ibek/ioc_cmds/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import typer

from ibek.globals import EPICS_ROOT, IOC_FOLDER, SYMLINKS
from ibek.globals import EPICS_ROOT, IBEK_FILES, IOC_FOLDER


def get_ioc_source() -> Path:
Expand Down Expand Up @@ -69,7 +69,7 @@ def extract_assets(destination: Path, source: Path, extras: List[Path], defaults
default_assets = [
get_ioc_source() / "ibek-support",
source / "support" / "configure",
SYMLINKS,
IBEK_FILES,
IOC_FOLDER,
Path("/venv"),
]
Expand Down
4 changes: 2 additions & 2 deletions src/ibek/support_cmds/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
from typing_extensions import Annotated

from ibek.globals import (
IBEK_FILES,
IOC_DBDS,
IOC_LIBS,
RELEASE,
RUNTIME_DEBS,
SUPPORT,
SYMLINKS,
NaturalOrderGroup,
)
from ibek.support import Support
Expand Down Expand Up @@ -256,7 +256,7 @@ def generate_links(

support_yaml = from_path.glob("*/*.ibek.support.yaml")

to_path = SYMLINKS / "ibek"
to_path = IBEK_FILES
to_path.mkdir(parents=True, exist_ok=True)
for yaml in support_yaml:
link_from = to_path / yaml.name
Expand Down
2 changes: 1 addition & 1 deletion src/ibek/templates/ioc/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if [ -f ${ibek_src} ]; then
final_ioc_startup=/tmp/st.cmd

# get ibek the support yaml files this ioc's support modules
defs=/epics/links/ibek/*.ibek.support.yaml
defs=/epics/ibek/*.ibek.support.yaml
ibek runtime generate ${ibek_src} ${defs} --out ${final_ioc_startup} --db-out ${db_src}

# build expanded database using msi
Expand Down

0 comments on commit f7d82de

Please sign in to comment.