Move venv to a more normal .venv
This commit is contained in:
parent
921c8e1422
commit
4b6b4a9cd3
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ web -- the contents of our (static, public) website.
|
|||
secrets -- passwords, PII, etc. Assume everything else could be made public. If it would be existentially bad for it to leak, encrypt it, and put it here.
|
||||
doc -- documentation of processes, ideas, memos, etc.
|
||||
llc -- corporate documents, financial ledger, business running.
|
||||
venv -- python environment for this whole kiboodle.
|
||||
.venv -- python environment for this whole kiboodle.
|
||||
|
||||
To set up an environment that works with these scripts, start a shell
|
||||
(preferably zsh, though bash should work) in this directory, and type:
|
||||
|
|
|
|||
|
|
@ -20,13 +20,13 @@ fi
|
|||
declare -x ALMANACK_ROOT=$(dirname $script_dir)
|
||||
|
||||
# Check for the existence of the venv directory
|
||||
if [ ! -d "$ALMANACK_ROOT/venv" ]; then
|
||||
if [ ! -d "$ALMANACK_ROOT/.venv" ]; then
|
||||
echo "The virtual environment directory does not exist. Please run:"
|
||||
echo "python -m venv $ALMANACK_ROOT/venv --prompt almnck"
|
||||
echo "python -m venv $ALMANACK_ROOT/.venv --prompt almnck"
|
||||
return 1 2>/dev/null || exit 1
|
||||
fi
|
||||
|
||||
. $ALMANACK_ROOT/venv/bin/activate
|
||||
. $ALMANACK_ROOT/.venv/bin/activate
|
||||
PATH=$ALMANACK_ROOT/bin:$PATH
|
||||
|
||||
# Default to going to the root of almanack
|
||||
|
|
|
|||
Loading…
Reference in a new issue