[tor-commits] [ooni-probe/master] Remove old bin/oonib script.

isis at torproject.org isis at torproject.org
Sat May 18 16:03:28 UTC 2013


commit 9a32c80096c3e6cf2acf8498dfc5d5b913b1b1a6
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat May 18 15:52:50 2013 +0000

    Remove old bin/oonib script.
---
 bin/oonib |   36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/bin/oonib b/bin/oonib
deleted file mode 100755
index 79885ba..0000000
--- a/bin/oonib
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import os
-# Avoid the export PYTHONPATH insanity
-sys.path[:] = map(os.path.abspath, sys.path)
-this_directory = os.path.dirname(__file__)
-root = os.path.abspath(os.path.join(this_directory, '..'))
-sys.path.insert(0, root)
-
-backend_script = os.path.join(root, 'oonib', 'oonibackend.py')
-
-from twisted.python import log, usage
-from twisted.internet import reactor
-from twisted.application import app
-
-from oonib import runner
-from oonib.oonibackend import application
-
-sys.argv[1:] = ['-ny', backend_script]
-
-# Uncomment this line to daemonize
-#sys.argv[1:] = ['-y', backend_script]
-
-def runApp(config):
-    runner.OBaseRunner(config).run()
-
-config = runner.ServerOptions()
-try:
-    config.parseOptions()
-except usage.error, ue:
-    print config
-    print "%s: %s" % (sys.argv[0], ue)
-else:
-    runApp(config)
-





More information about the tor-commits mailing list