diff options
author | Kali Kaneko <kali@leap.se> | 2016-03-08 11:36:37 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-19 09:59:49 -0400 |
commit | b3f5538984502d97c77a9666f39c8d5b8f4a5c31 (patch) | |
tree | 0e5baf742f8490aaecd67f513173929d283dc302 | |
parent | 23d5143d7b66e30f84556be85eeced5f914598a9 (diff) |
[feature] add bitmaskd entrypoint
-rwxr-xr-x | setup.py | 3 | ||||
-rw-r--r-- | src/leap/bitmask/core/launcher.py | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -479,6 +479,7 @@ extra_options = {} gui_launcher = 'bitmask=leap.bitmask.app:start_app' bitmask_cli = 'bitmask_cli=leap.bitmask.cli.bitmask_cli:main' +bitmaskd = 'bitmaskd=leap.bitmask.core.launcher:run_bitmaskd' setup( @@ -516,7 +517,7 @@ setup( zip_safe=False, platforms="all", entry_points={ - 'console_scripts': [gui_launcher, bitmask_cli] + 'console_scripts': [gui_launcher, bitmask_cli, bitmaskd] }, **extra_options ) diff --git a/src/leap/bitmask/core/launcher.py b/src/leap/bitmask/core/launcher.py index 7d658017..e363046e 100644 --- a/src/leap/bitmask/core/launcher.py +++ b/src/leap/bitmask/core/launcher.py @@ -35,3 +35,7 @@ def run_bitmaskd(): ] print '[+] launching bitmaskd...' run() + + +if __name__ == "__main__": + run_bitmaskd() |