-
Notifications
You must be signed in to change notification settings - Fork 1
/
.envrc
26 lines (22 loc) · 1 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
# Environment variables go here, and can be read in by Python using `os.environ.get`:
#
# --------------------------------------------------------
# import os
#
# EXAMPLE_VARIABLE = os.environ.get("EXAMPLE_VARIABLE")
# --------------------------------------------------------
#
# DO NOT STORE SECRETS HERE - this file is version-controlled! You should store secrets in a `.secrets` file, which is
# not version-controlled - this can then be sourced here, using `source_env ".secrets"`.
# Add the working directory to PYTHONPATH; allows Jupyter notebooks in the `notebooks` folder to import `src`
export PYTHONPATH=$PYTHONPATH:$(pwd)
# Import secrets from an untracked file `.secrets`
source_env ".secrets"
# Add variables for the data directories
export DIR_DATA=$(pwd)/data
export DIR_DATA_EXTERNAL=$DIR_DATA/external
export DIR_DATA_RAW=$DIR_DATA/raw
export DIR_DATA_INTERIM=$DIR_DATA/interim
export DIR_DATA_PROCESSED=$DIR_DATA/processed
# Add variables for the output directory
export DIR_OUTPUT=$(pwd)/output