Move venv to a more normal .venv

This commit is contained in:
Danny O'Brien 2025-07-08 21:02:38 -07:00
parent 921c8e1422
commit 4b6b4a9cd3
2 changed files with 4 additions and 4 deletions

View file

@ -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. 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. doc -- documentation of processes, ideas, memos, etc.
llc -- corporate documents, financial ledger, business running. 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 To set up an environment that works with these scripts, start a shell
(preferably zsh, though bash should work) in this directory, and type: (preferably zsh, though bash should work) in this directory, and type:

View file

@ -20,13 +20,13 @@ fi
declare -x ALMANACK_ROOT=$(dirname $script_dir) declare -x ALMANACK_ROOT=$(dirname $script_dir)
# Check for the existence of the venv directory # 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 "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 return 1 2>/dev/null || exit 1
fi fi
. $ALMANACK_ROOT/venv/bin/activate . $ALMANACK_ROOT/.venv/bin/activate
PATH=$ALMANACK_ROOT/bin:$PATH PATH=$ALMANACK_ROOT/bin:$PATH
# Default to going to the root of almanack # Default to going to the root of almanack