[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 9a32c80096c3e6cf2acf8498dfc5d5b913b1b1a6
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sat May 18 15:52:50 2013 +0000

    Remove old bin/oonib script.
---
 bin/oonib |   36 ------------------------------------
 1 file changed, 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)
-



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits