summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-03-08 11:36:37 -0400
committerKali Kaneko <kali@leap.se>2016-04-19 09:59:49 -0400
commitb3f5538984502d97c77a9666f39c8d5b8f4a5c31 (patch)
tree0e5baf742f8490aaecd67f513173929d283dc302
parent23d5143d7b66e30f84556be85eeced5f914598a9 (diff)
[feature] add bitmaskd entrypoint
-rwxr-xr-xsetup.py3
-rw-r--r--src/leap/bitmask/core/launcher.py4
2 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 3e720971..24ed98aa 100755
--- a/setup.py
+++ b/setup.py
@@ -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()