-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
25 lines (22 loc) · 933 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ===========================================================================
# PROJECT ENVIRONMENT SETUP: .envrc
# ===========================================================================
# SHELL: bash (or similiar)
# REQUIRES: direnv >= 2.26.0 -- NEEDED FOR: dotenv_if_exists
# USAGE:
# # -- BETTER: Use direnv (requires: Setup in bash -- $HOME/.bashrc)
# # BASH PROFILE NEEDS: eval "$(direnv hook bash)"
# direnv allow .
#
# SEE ALSO:
# * https://direnv.net/
# * https://github.com/direnv/direnv
# ===========================================================================
# MAYBE: HERE="${PWD}"
# -- USE OPTIONAL PARTS (if exist/enabled):
# DISABLED: dotenv_if_exists .env
source_env_if_exists .envrc.use_venv
# -- SETUP-PYTHON: Prepend ${HERE} to PYTHONPATH (as PRIMARY search path)
# SIMILAR TO: export PYTHONPATH="${HERE}:${PYTHONPATH}"
path_add PYTHONPATH .
# DISABLED: source_env_if_exists .envrc.override