Explorar o código

Find CHUTNEY_PATH based on the chutney script's path

teor %!s(int64=9) %!d(string=hai) anos
pai
achega
42c7b051ff
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      chutney

+ 5 - 0
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"