#!/bin/sh

current_exe_dir=$(dirname $0)

# Does readlink -f work on MacOSX? Possibly not. I don't know what to
# do about it yet.

systype=$(uname)

if [ $systype = Darwin ] ; then 
   prfx=$(dirname "$current_exe_dir")
else
   prfx=$(readlink -f $(dirname "$current_exe_dir"))
fi

export LD_LIBRARY_PATH=$prfx/lib
export PATH=$prfx/bin:$PATH

python -m pyrogen $*
