blob: 81c0a118da0a17fbbe55a49b718879e0817f1d89 [file] [log] [blame]
# By default use internal libraries
DEVMODE=${DEVMODE:-1}
export PYTHONPATH=''
export PYTHONPATH=`pwd`/libs/utils:$PYTHONPATH
export PYTHONPATH=`pwd`/libs/wlgen:$PYTHONPATH
if [ "x$DEVMODE" == "x1" ]; then
export PYTHONPATH=`pwd`/libs/devlib:$PYTHONPATH
export PYTHONPATH=`pwd`/libs/trappy:$PYTHONPATH
export PYTHONPATH=`pwd`/libs/bart:$PYTHONPATH
echo
echo 'Developer mode ENABLED, using libraries provided by submodules'
echo 'PYTHONPATH: '
echo $PYTHONPATH
echo
if [ ! -f libs/devlib/README.rst ]; then
echo 'Initializing submodules...'
git submodule init
fi
echo 'Update submodules if required'
git submodule update
echo 'DONE'
fi