2755 Add ability to extend HostNode, NetworkNode, Service and Application outside PrimAITE.
This commit is contained in:
@@ -59,3 +59,17 @@ def data_manipulation_marl_config_path() -> Path:
|
||||
_LOGGER.error(msg)
|
||||
raise FileNotFoundError(msg)
|
||||
return path
|
||||
|
||||
def get_extended_config_path() -> Path:
|
||||
"""
|
||||
Get the path to an 'extended' example config that contains nodes using the extension framework
|
||||
|
||||
:return: Path to the extended example config
|
||||
:rtype: Path
|
||||
"""
|
||||
path = _EXAMPLE_CFG / "extended_config.yaml"
|
||||
if not path.exists():
|
||||
msg = f"Example config does not exist: {path}. Have you run `primaite setup`?"
|
||||
_LOGGER.error(msg)
|
||||
raise FileNotFoundError(msg)
|
||||
return path
|
||||
Reference in New Issue
Block a user