update to add a way to avoid loading parent service classes, that inherit from CoreService that should not be loaded on their own

This commit is contained in:
Blake J. Harnden 2018-04-20 21:40:55 -07:00
parent ac2b64aaaf
commit c65baa9298
7 changed files with 8 additions and 6 deletions

View file

@ -72,6 +72,8 @@ class ServiceManager(object):
"""
services = utils.load_classes(path, CoreService)
for service in services:
if not service._name:
continue
service.on_load()
cls.add(service)