#!/bin/sh

PROG=OroboROX

CWD=`pwd`
APP_DIR=`dirname "$0"`
APP_DIR=`cd "$APP_DIR";pwd`
cd "$APP_DIR"

#if [ x"$XDG_CONFIG_HOME" = x"" ] ; then
if [ x"$CHOICESPATH" = x"" ] ; then
	XDG_CONFIG_HOME="$HOME/.config"
else
	XDG_CONFIG_HOME=`echo $CHOICESPATH | sed s/:.*//`
fi
#export XDG_CONFIG_HOME
#fi

OROBOROX_CONFIG_HOME="$XDG_CONFIG_HOME/$PROG"
export OROBOROX_CONFIG_HOME
export APP_DIR

#exec valgrind --tool=memcheck --num-callers=8 --leak-check=yes --show-reachable=yes python start.py

#exec strace python start.py

#exec valgrind -v --tool=corecheck python start.py

exec python start.py

