commit 34c10dbc836709e7a2e885f304c8b6cc87b27223 Author: Arturo Filastò art@fuffa.org Date: Sat May 4 15:56:25 2013 +0200
Add hack to allow running oonib --- bin/oonib | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/bin/oonib b/bin/oonib index f629ed7..cda5bc0 100755 --- a/bin/oonib +++ b/bin/oonib @@ -6,6 +6,10 @@ from twisted.python import log, usage from twisted.internet import reactor from twisted.application import app
+# Hack to set the proper sys.path. Overcomes the export PYTHONPATH pain. +sys.path[:] = map(os.path.abspath, sys.path) +sys.path.insert(0, os.path.abspath(os.getcwd())) + from oonib import runner, config from oonib.oonibackend import application