forked from sysid/sse-starlette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
32 lines (23 loc) · 826 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
26
27
28
29
30
31
32
#!/usr/bin/env bash
# shellcheck disable=SC1091
############### VENV ###############
# Emulate the pipenvs's activate, because we can't source things in direnv
layout_pipenv
############### Exports ###############
PROJ_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PROJ_DIR
echo "-M- exporting PROJ_DIR: $PROJ_DIR"
if which tmux > /dev/null 2>&1; then
tmux rename-window "$(basename "$PROJ_DIR")"
fi
export senv="source $PROJ_DIR/scripts/env.sh"
export PYTHONPATH=$PROJ_DIR
export PIPENV_VENV_IN_PROJECT=1 # creates .venv
PATH_add $PROJ_DIR/scripts
export RUN_ENV=local
######################################## github ########################################
export GH_HOST=github.com
### unset for PyPi
unset TWINE_USERNAME
unset TWINE_PASSWORD
# vim: set foldmethod=marker foldmarker={{{,}}}: