-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.envrc
24 lines (21 loc) · 870 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
# ===========================================================================
# 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):
source_env_if_exists .envrc.use_venv
path_add PYTHONPATH .
path_add PATH bin
# -- DISABLED: source_env_if_exists .envrc.override