You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
512 B

from ctabus.internal.config import state_dir
from ctabus.internal.notification import NotificationManager, HAS_NOTIFICATION
class CTABUSNotifictaionManager(NotificationManager):
def __init__(self, workdir=state_dir):
super().__init__(workdir, group="ctabus")
self.exiter = None
def setup_exiter(self, exiter):
if self.exiter is None:
self.exiter = exiter
def on_done(self):
self.exiter.set()
if HAS_NOTIFICATION:
nm = CTABUSNotifictaionManager()