123456789101112131415161718 |
- #!/bin/bash
- # https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
- DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
- SETUP_PY_ENV=$DIR/env/activate_python_env.sh
- EXAMPLE_PY_ENV=$DIR/env/activate_python_env_EXAMPLE.sh
- if [ -f $SETUP_PY_ENV ]
- then
- . $SETUP_PY_ENV
- cd $DIR/python
- PYTHONPATH=$DIR/python jupyter notebook
- else
- echo "$SETUP_PY_ENV not found. You can use $EXAMPLE_PY_ENV as a starting point for your own." 1>&2
- exit 1
- fi
-
|