summaryrefslogtreecommitdiff
path: root/src/leap/platform_init/initializers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/platform_init/initializers.py')
-rw-r--r--src/leap/platform_init/initializers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py
index 055c90a2..cf7e71b8 100644
--- a/src/leap/platform_init/initializers.py
+++ b/src/leap/platform_init/initializers.py
@@ -117,9 +117,9 @@ def _darwin_has_tun_kext():
"""
# XXX we should be smarter here and use kextstats output.
- has_kext = lambda: os.path.isdir("/System/Library/Extensions/tun.kext")
- has_startup = lambda: os.path.isdir("/System/Library/StartupItems/tun")
- has_tun_and_startup = has_kext() and has_startup()
+ has_kext = os.path.isdir("/System/Library/Extensions/tun.kext")
+ has_startup = os.path.isdir("/System/Library/StartupItems/tun")
+ has_tun_and_startup = has_kext and has_startup
logger.debug('platform initializer check: has tun_and_startup = %s' %
(has_tun_and_startup,))
return has_tun_and_startup