#! /bin/sh # # Script taken from Trond Norbye (Couchbase.com) with small modifications. # # This script is intended to be copied to foo if python script is called foo.py # and will call same-named script with exported and correctly set PYTHONPATH. prefix="@prefix@" exec_prefix="@exec_prefix@" if test -z "${PYTHONPATH}"; then PYTHONPATH=@pyexecdir@ else PYTHONPATH=@pyexecdir@:${PYTHONPATH} fi export PYTHONPATH exec @pyexecdir@/`basename $0`.py "$@"