From 2bbe0e0a2d852a1a7261b2fa927eab6e8f41c8c3 Mon Sep 17 00:00:00 2001 From: kali Date: Mon, 27 Aug 2012 05:45:58 +0900 Subject: change default_provider_path to base.constants fix tests by introducing a (dirtish) workaround for check for openvpn keys during vpn connection initialization. noted that eipconnection constructor should be better not having that class of side-effects. --- src/leap/base/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/leap/base/config.py') diff --git a/src/leap/base/config.py b/src/leap/base/config.py index 8455f9de..4d7db018 100644 --- a/src/leap/base/config.py +++ b/src/leap/base/config.py @@ -13,6 +13,7 @@ logger = logging.getLogger(name=__name__) logger.setLevel('DEBUG') from leap.base import exceptions +from leap.base import constants from leap.util.fileutil import (mkdir_p) @@ -135,7 +136,7 @@ def get_config_file(filename, folder=None): def get_default_provider_path(): default_subpath = os.path.join("providers", - "default") + constants.DEFAULT_TEST_PROVIDER) default_provider_path = get_config_file( '', folder=default_subpath) -- cgit v1.2.3