forked from behave/behave.example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
31 lines (27 loc) · 1.11 KB
/
.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
26
27
28
29
30
31
# ===========================================================================
# PROJECT ENVIRONMENT SETUP: .envrc
# ===========================================================================
# SHELL: bash (or similiar)
# REQUIRES: direnv >= 2.21.0 -- NEEDED FOR: path_add, venv support
# 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
# * https://peps.python.org/pep-0582/ Python local packages directory
# ===========================================================================
# MAYBE: HERE="${PWD}"
# -- USE OPTIONAL PARTS (if exist/enabled):
# REQUIRES: direnv >= 2.26.0 -- NEEDED FOR: dotenv_if_exists
# DISABLED: dotenv_if_exists .env
source_env_if_exists .envrc.use_venv
export TOPDIR="$PWD"
# -- SETUP-PYTHON: Prepend ${HERE} to PYTHONPATH (as PRIMARY search path)
# SIMILAR TO: export PYTHONPATH="${HERE}:${PYTHONPATH}"
path_add PYTHONPATH lib/python
path_add PYTHONPATH .
path_add PATH bin
source_env_if_exists .envrc.override