diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-01-23 17:07:02 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-01-23 17:09:43 -0300 |
commit | d4e53f6cef9ba2b476cc8308f132d8af20e79156 (patch) | |
tree | 22976e7b07816140ecfd05855e201ff104937ac6 /src/leap/bitmask/backend.py | |
parent | 2cb7443595a91857a4d037f2385ade5c8385d6a4 (diff) |
Replace provider hardcoded path with helper.
Also reorder some imports and remove unused ones.
Diffstat (limited to 'src/leap/bitmask/backend.py')
-rw-r--r-- | src/leap/bitmask/backend.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/backend.py b/src/leap/bitmask/backend.py index 6b29d4b3..df79381c 100644 --- a/src/leap/bitmask/backend.py +++ b/src/leap/bitmask/backend.py @@ -18,7 +18,6 @@ Backend for everything """ import logging -import os from Queue import Queue, Empty @@ -29,6 +28,7 @@ from twisted.python import log import zope.interface from leap.bitmask.config.providerconfig import ProviderConfig +from leap.bitmask.provider import get_provider_path from leap.bitmask.provider.providerbootstrapper import ProviderBootstrapper # Frontend side @@ -155,9 +155,7 @@ class Provider(object): # we want to connect to other provider... if (not self._provider_config.loaded() or self._provider_config.get_domain() != provider): - self._provider_config.load( - os.path.join("leap", "providers", - provider, "provider.json")) + self._provider_config.load(get_provider_path(provider)) if self._provider_config.loaded(): d = self._provider_bootstrapper.run_provider_setup_checks( |