5
if [ `echo $dirname | grep "^/" -c` -eq 1 ]; then
8
cd `pwd`/$dirname/.. > /dev/null
13
export PYTHONPATH=$path/lib:/usr/share/exabgp
14
export ETC=$path/etc/exabgp
17
PYTHON27=`which python2.7`
18
PYTHON26=`which python2.6`
19
PYTHON25=`which python2.5`
20
PYTHON24=`which python2.4`
21
PYTHON2=`which python2`
27
elif [ -f "$PYTHON27" ]
30
elif [ -f "$PYTHON26" ]
33
elif [ -f "$PYTHON25" ]
36
elif [ -f "$PYTHON24" ]
39
elif [ -f "$PYTHON2" ]
49
APPLICATIONS=`$INTERPRETER -c "import sys,os; print ' '.join(os.path.join(_,'exabgp','application.py') for _ in sys.path if os.path.isfile('/'.join((_,'exabgp/application.py'))))"`
50
APPLICATION=`echo $APPLICATIONS | awk '{ print $1; }'`
52
$INTERPRETER -m exabgp.debug $APPLICATION $*