Explorar el Código

Find CHUTNEY_PATH based on the chutney script's path

teor hace 8 años
padre
commit
42c7b051ff
Se han modificado 1 ficheros con 5 adiciones y 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"