summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-07-17 10:53:15 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-07-26 10:32:39 -0700
commitf1e225cbb571920bb6d17f6ff15013f2c69c6c6c (patch)
treeb8ef381eb82a6ad7cf75143610a47808e3d9ddea /alot/__main__.py
parentb19d58f556932eec92e3cf27f6c018791415367d (diff)
Use twisted reactor as asyncio event loop
This puts the twisted event loop into the asyncio framework. This means that we're currently running all over our twisted.defered's and twisted.inlineCallbacks through asyncio, using the twisted loop. This will allow incremental updates from twisted's event loop to a standard asyncio event loop.
Diffstat (limited to 'alot/__main__.py')
-rw-r--r--alot/__main__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/alot/__main__.py b/alot/__main__.py
index 221e6b22..9899bf36 100644
--- a/alot/__main__.py
+++ b/alot/__main__.py
@@ -6,6 +6,9 @@ import logging
import os
import sys
+from twisted.internet import asyncioreactor
+asyncioreactor.install()
+
import alot
from alot.settings.const import settings
from alot.settings.errors import ConfigError