daemon: updated how local services are loaded to leverage full core path imports, avoiding name collisions with external modules
This commit is contained in:
parent
a42697ecce
commit
2eef7076f4
3 changed files with 23 additions and 27 deletions
|
@ -6,7 +6,6 @@ import sys
|
|||
from pathlib import Path
|
||||
from typing import Dict, List, Type
|
||||
|
||||
import core.services
|
||||
from core import utils
|
||||
from core.configservice.manager import ConfigServiceManager
|
||||
from core.emane.modelmanager import EmaneModelManager
|
||||
|
@ -92,7 +91,7 @@ class CoreEmu:
|
|||
:return: nothing
|
||||
"""
|
||||
# load default services
|
||||
self.service_errors = core.services.load()
|
||||
self.service_errors = ServiceManager.load_locals()
|
||||
# load custom services
|
||||
service_paths = self.config.get("custom_services_dir")
|
||||
logger.debug("custom service paths: %s", service_paths)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue