summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-10-15 19:40:02 +0200
committermathieui <mathieui@mathieui.net>2018-10-15 19:40:54 +0200
commit1ed666c5b541eb7e1a294681790e09eac8cc0f5d (patch)
tree5c0e2f8463e892228fc3c4e74ff264f8aac62a87
parent8484f9e3c5912747babf941deb7aef81631fc7b1 (diff)
downloadpoezio-1ed666c5b541eb7e1a294681790e09eac8cc0f5d.tar.gz
poezio-1ed666c5b541eb7e1a294681790e09eac8cc0f5d.tar.bz2
poezio-1ed666c5b541eb7e1a294681790e09eac8cc0f5d.tar.xz
poezio-1ed666c5b541eb7e1a294681790e09eac8cc0f5d.zip
Fix core import in main
-rw-r--r--poezio/poezio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py
index 2544ef1a..05c8ceed 100644
--- a/poezio/poezio.py
+++ b/poezio/poezio.py
@@ -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)