diff options
author | Neissi Torres Lima <neissi.lima@gmail.com> | 2014-08-05 15:11:56 -0300 |
---|---|---|
committer | Neissi Torres Lima <neissi.lima@gmail.com> | 2014-08-05 15:11:56 -0300 |
commit | f0108c072f5f27382d335331b1fba44c972a6fa8 (patch) | |
tree | 8c2547ee01e49a0c478a59164e35aac785343f64 /service/app | |
parent | b8645563bd0918979700a63a638c8ba2907e3d58 (diff) |
Added wazokazi self signed certificate to project
Diffstat (limited to 'service/app')
-rw-r--r-- | service/app/leap/client.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/app/leap/client.py b/service/app/leap/client.py index bc93f1e2..b1e4fb8b 100644 --- a/service/app/leap/client.py +++ b/service/app/leap/client.py @@ -1,5 +1,6 @@ import traceback import sys +import os from app.bitmask_libraries.config import LeapConfig from app.bitmask_libraries.provider import LeapProvider from app.bitmask_libraries.session import LeapSessionFactory @@ -13,7 +14,7 @@ class Client: self.password = 'testpassword' self.server_name = 'example.wazokazi.is' self.mailbox_name = 'inbox' - self.leapdir = '~/.leap' + self.leapdir = os.path.join(os.path.abspath("."), "leap") self._open_leap_session() except: @@ -21,7 +22,7 @@ class Client: raise def _open_leap_session(self): - self.leap_config = LeapConfig() + self.leap_config = LeapConfig(leap_home=self.leapdir) self.provider = LeapProvider(self.server_name, self.leap_config) self.leap_session = LeapSessionFactory(self.provider).create(LeapCredentials(self.username, self.password)) self.mbx = self.leap_session.account.getMailbox(self.mailbox_name) |