diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/bonafide/service.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bonafide/service.py b/src/leap/bonafide/service.py index 36399de..2ff4eed 100644 --- a/src/leap/bonafide/service.py +++ b/src/leap/bonafide/service.py @@ -19,6 +19,8 @@ Bonafide Service. """ +import os + from leap.bonafide._protocol import BonafideProtocol from twisted.application import service @@ -28,8 +30,9 @@ class BonafideService(service.Service): # TODO inherit from HookableService (from common) - def __init__(self): + def __init__(self, basedir='~/.config/leap'): self._bonafide = BonafideProtocol() + self._basedir = os.path.expanduser(basedir) self.service_hooks = {} def register_hook(self, kind, trigger): |