Fix core import in main

This commit is contained in:
mathieui 2018-10-15 19:40:02 +02:00
parent 8484f9e3c5
commit 1ed666c5b5
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -98,10 +98,10 @@ def main():
from poezio import roster
roster.create_roster()
from poezio import core
from poezio.core.core import Core
signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c
cocore = core.Core()
cocore = Core()
signal.signal(signal.SIGUSR1, cocore.sigusr_handler) # reload the config
signal.signal(signal.SIGHUP, cocore.exit_from_signal)
signal.signal(signal.SIGTERM, cocore.exit_from_signal)