docs: fixed example emane model code to properly load platform config

This commit is contained in:
Blake Harnden 2023-05-01 08:40:48 -07:00
parent d2008b1e5a
commit 01585b6ec5
2 changed files with 2 additions and 0 deletions

View file

@ -184,6 +184,7 @@ class ExampleModel(emanemodel.EmaneModel):
:param emane_prefix: configured emane prefix path
:return: nothing
"""
cls._load_platform_config(emane_prefix)
manifest_path = "share/emane/manifest"
# load mac configuration
mac_xml_path = emane_prefix / manifest_path / cls.mac_xml

View file

@ -64,6 +64,7 @@ class ExampleModel(emanemodel.EmaneModel):
:param emane_prefix: configured emane prefix path
:return: nothing
"""
cls._load_platform_config(emane_prefix)
manifest_path = "share/emane/manifest"
# load mac configuration
mac_xml_path = emane_prefix / manifest_path / cls.mac_xml