install providers first
This commit is contained in:
parent
c29a03aeda
commit
c2a9726ec6
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ from dataclasses import dataclass, MISSING, fields
|
||||||
|
|
||||||
from setproctitle import setproctitle
|
from setproctitle import setproctitle
|
||||||
|
|
||||||
from .treepuncher import Treepuncher, MissingParameterError, Addon, ConfigObject, Notifier
|
from .treepuncher import Treepuncher, MissingParameterError, Addon, ConfigObject, Provider
|
||||||
from .helpers import configure_logging
|
from .helpers import configure_logging
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -103,15 +103,15 @@ def main():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO ugly af! notifiers get installed first tho
|
# TODO ugly af! providers get installed first tho
|
||||||
|
|
||||||
for addon in addons:
|
for addon in addons:
|
||||||
if addon.__name__.lower() in enabled_addons and issubclass(addon, Notifier):
|
if addon.__name__.lower() in enabled_addons and issubclass(addon, Provider):
|
||||||
logging.info("Installing '%s'", addon.__name__)
|
logging.info("Installing '%s'", addon.__name__)
|
||||||
client.install(addon)
|
client.install(addon)
|
||||||
|
|
||||||
for addon in addons:
|
for addon in addons:
|
||||||
if addon.__name__.lower() in enabled_addons and not issubclass(addon, Notifier):
|
if addon.__name__.lower() in enabled_addons and not issubclass(addon, Provider):
|
||||||
logging.info("Installing '%s'", addon.__name__)
|
logging.info("Installing '%s'", addon.__name__)
|
||||||
client.install(addon)
|
client.install(addon)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue