Updated startup script
authorEnrico Zini <enrico@enricozini.org>
Tue, 14 Jul 2009 14:40:21 +0000 (15:40 +0100)
committerEnrico Zini <enrico@enricozini.org>
Tue, 14 Jul 2009 14:40:21 +0000 (15:40 +0100)
run

diff --git a/run b/run
index 26c385cf2ece83c4fffea687576fa9248c019757..5fc2efbd0727e308c034f67c1ab3fe922709bdf3 100755 (executable)
--- a/run
+++ b/run
@@ -1,7 +1,9 @@
 #!/bin/sh
 
-export PYTHONPATH=.
-export ZAVAI_CONFDIR=conf
-export ZAVAI_PLUGINS=plugins
+ROOT=`dirname $0`
 
-src/zavai --verbose "$@"
+export PYTHONPATH=$ROOT
+export ZAVAI_CONFDIR=$ROOT/conf
+export ZAVAI_PLUGINS=$ROOT/plugins
+
+$ROOT/src/zavai "$@"