summaryrefslogtreecommitdiff
path: root/bonafide
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-12-09 12:33:13 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2015-12-09 12:54:30 -0400
commitd9b4b041035c018d3b24b4866647df6092c8f55b (patch)
tree614040a926a669a86d24ad067da98b1a87ab3fe7 /bonafide
parent51b3c7c7677a4acf2565b480d64d473e4ba6bcf1 (diff)
accept basedir in service initialization
Diffstat (limited to 'bonafide')
-rw-r--r--bonafide/src/leap/bonafide/service.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bonafide/src/leap/bonafide/service.py b/bonafide/src/leap/bonafide/service.py
index 36399def..2ff4eed8 100644
--- a/bonafide/src/leap/bonafide/service.py
+++ b/bonafide/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):