Easier to specify another builbot dir (staging prod)

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
Gaetan Semet 2013-08-13 15:25:17 +02:00
commit 5dbf453634

View file

@ -4,7 +4,13 @@ alias cdp='cd ~/projects/'
function bb_env()
{
BASE=$HOME/projects/buildbot/
BBDIR=$1
shift
if [[ -z $BBDIR ]]; then
BASE=$HOME/projects/buildbot/
else
BASE=$BBDIR
fi
export __PATHBKP=$PATH
export PYTHONPATH=$BASE/buildbot/master:$BASE/txwebservices/install:$BASE/cactus/install:$BASE/config/tools
export PATH=$HOME/bin:$BASE/buildbot/master/bin:$BASE/txwebservices/install:$PATH