| |
| # 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 |
| |