summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/vpn/_config.py')
-rw-r--r--src/leap/bitmask/vpn/_config.py14
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