[tor-commits] [chutney/master] Find CHUTNEY_PATH based on the chutney script's path

teor at torproject.org teor at torproject.org
Tue Aug 30 02:00:13 UTC 2016


commit 42c7b051ff2677b3377b6530a4e28c1fb3dc9619
Author: teor <teor2345 at gmail.com>
Date:   Tue Aug 30 11:56:47 2016 +1000

    Find CHUTNEY_PATH based on the chutney script's path
---
 chutney | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/chutney b/chutney
index da8d97d..5fbc5d2 100755
--- a/chutney
+++ b/chutney
@@ -4,6 +4,11 @@ set -o errexit
 set -o nounset
 
 export PYTHONPATH="$(dirname "${0}")/lib:$(dirname "${0}")/scripts:${PYTHONPATH-}"
+# make a last-ditch effort to set CHUTNEY_PATH based on this script's location
+if ! test "${CHUTNEY_PATH+y}"
+then
+    export CHUTNEY_PATH="`dirname $0`"
+fi
 
 binaries="python2 python"
 



More information about the tor-commits mailing list