Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 398 Bytes
from twisted.application import service
from harold.conf import HaroldConfiguration
from harold import plugin
# read configuration
config = HaroldConfiguration("harold.ini")
# load the service modules
plugins = plugin.load_plugins(config)
# build the application
application = service.Application("Harold")
for p in plugins:
for svc in p.services:
svc.setServiceParent(application)
Jump to Line
Something went wrong with that request. Please try again.