load_env.sh 492 B

123456789101112131415
  1. # `source` this file to load all env variables.
  2. # An environment file based on the `config/.env` template must be present in
  3. # `../.env`.
  4. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  5. VENV_DIR="${DIR}/../venv"
  6. echo "Loading virtual environment in ${VENV_DIR}"
  7. # Load virtual env. This works if venv is installed using:
  8. # `python3 -m venv venv` in the parent directory.
  9. source "${VENV_DIR}/bin/activate"
  10. # Additional environment variables.
  11. source "${DIR}/../.env"