[Pkg-privacy-commits] [onionbalance] 14/117: Add convenience wrapper for running service
Donncha O'Cearbahill
donncha-guest at moszumanska.debian.org
Wed Dec 16 23:18:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
donncha-guest pushed a commit to branch debian/sid
in repository onionbalance.
commit 4935ff20d407672e35ea7fc50f1e2c8571eaea94
Author: Donncha O'Cearbhaill <donncha at donncha.is>
Date: Tue Jun 9 19:40:20 2015 +0100
Add convenience wrapper for running service
---
onionbalance.py | 9 +++++++++
onionbalance/__main__.py | 5 +++++
onionbalance/manager.py | 3 ---
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/onionbalance.py b/onionbalance.py
new file mode 100755
index 0000000..e4e2109
--- /dev/null
+++ b/onionbalance.py
@@ -0,0 +1,9 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""Convenience wrapper for running OnionBalance directly from source tree."""
+
+from onionbalance.manager import main
+
+if __name__ == '__main__':
+ main()
diff --git a/onionbalance/__main__.py b/onionbalance/__main__.py
new file mode 100644
index 0000000..7d38406
--- /dev/null
+++ b/onionbalance/__main__.py
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+
+from onionbalance.manager import main
+
+main()
diff --git a/onionbalance/manager.py b/onionbalance/manager.py
index 13f87d2..ba99b8e 100644
--- a/onionbalance/manager.py
+++ b/onionbalance/manager.py
@@ -157,6 +157,3 @@ def main():
logger.info("Stopping descriptor uploads")
return 0
-
-if __name__ == "__main__":
- exit(main())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionbalance.git
More information about the Pkg-privacy-commits
mailing list