From 4b6b4a9cd3c8f79168a81e6e4bdc221b0d25f401 Mon Sep 17 00:00:00 2001 From: Danny O'Brien Date: Tue, 8 Jul 2025 21:02:38 -0700 Subject: [PATCH] Move venv to a more normal .venv --- README.md | 2 +- bin/a-activate | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05c795e..7754ba0 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/bin/a-activate b/bin/a-activate index 3866ec9..87240f2 100755 --- a/bin/a-activate +++ b/bin/a-activate @@ -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