#!/bin/zsh

bootstrap_script=${(%):-%N}
bindir=`dirname $bootstrap_script`
bindir_abs=`cd $bindir && pwd`
basedir=`dirname $bindir_abs`
scriptname=`basename $0`

export PYTHONPATH="$basedir/lib/python"
export PYTHONDONTWRITEBYTECODE=1


exec $bindir_abs/$scriptname.py $@

#!/bin/zsh

bin_directory=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
export BASEDIR=$(dirname $bin_directory)

bootstrap_script=${(%):-%N}
bindir=`dirname $bootstrap_script`
bindir_abs=`cd $bindir && pwd`
basedir=`dirname $bindir_abs`
scriptname=`basename $0`

export PYTHONPATH="$basedir/lib/python"
export PYTHONDONTWRITEBYTECODE=1


exec $bindir_abs/$scriptname.py $@

Add the BASEDIR environment variable
Add the BASEDIR environment variable
