diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-01 18:35:15 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-23 00:40:35 +0100 |
commit | 5103c1c46dadb15af0327c8069d4c321f4f93d4f (patch) | |
tree | 47e9745eab148a840c3ebbcc57e17bb9c139aeeb /src/leap/bitmask/vpn/_config.py | |
parent | 9551ff71ce976f04e98f1c19c667bc5f9f402ae9 (diff) |
[feature] add install/uninstall command for helpers
Diffstat (limited to 'src/leap/bitmask/vpn/_config.py')
-rw-r--r-- | src/leap/bitmask/vpn/_config.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/_config.py b/src/leap/bitmask/vpn/_config.py index 7dfabf7..267f61e 100644 --- a/src/leap/bitmask/vpn/_config.py +++ b/src/leap/bitmask/vpn/_config.py @@ -1,3 +1,17 @@ +import pkg_resources +from .constants import IS_LINUX + + +if IS_LINUX: + + def get_bitmask_helper_path(): + return pkg_resources.resource_filename( + 'leap.bitmask.vpn.helpers.linux', 'bitmask-root') + + def get_bitmask_polkit_policy_path(): + return pkg_resources.resource_filename( + 'leap.bitmask.vpn.helpers.linux', 'se.leap.bitmask.bundle.policy') + class _TempEIPConfig(object): """Current EIP code on bitmask depends on EIPConfig object, this temporary |