From 02a2406d82727cb82a4fbf0228c785d205ad5f73 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 11 Oct 2017 09:10:40 -0700 Subject: [bug] import linux specific constants inside if block --- src/leap/bitmask/vpn/helpers/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index 17281a52..9be2150d 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -4,15 +4,17 @@ import os.path import sys from leap.bitmask.vpn.constants import IS_LINUX, IS_MAC -from leap.bitmask.vpn.constants import BITMASK_ROOT_SYSTEM, BITMASK_ROOT_LOCAL -from leap.bitmask.vpn.constants import OPENVPN_SYSTEM, OPENVPN_LOCAL -from leap.bitmask.vpn.constants import POLKIT_SYSTEM, POLKIT_LOCAL -from leap.bitmask.vpn.privilege import is_pkexec_in_system from leap.bitmask.vpn import _config from leap.bitmask.util import STANDALONE if IS_LINUX: + + from leap.bitmask.vpn.constants import BITMASK_ROOT_SYSTEM, BITMASK_ROOT_LOCAL + from leap.bitmask.vpn.constants import OPENVPN_SYSTEM, OPENVPN_LOCAL + from leap.bitmask.vpn.constants import POLKIT_SYSTEM, POLKIT_LOCAL + from leap.bitmask.vpn.privilege import is_pkexec_in_system + def install(): helper_from = _config.get_bitmask_helper_path() polkit_from = _config.get_bitmask_polkit_policy_path() -- cgit v1.2.3