From 9ad36a5d3824f859e1481398bfeaf5f37f5ebb08 Mon Sep 17 00:00:00 2001 From: Chuan-Heng Hsiao Date: Sat, 19 Oct 2024 08:36:38 -0400 Subject: [PATCH] default virtualenv_dir as .venv --- README.md | 2 +- scripts/init_dev.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b96efdd..3f63c8e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ cookiecutter python template (pkgs, modules and tests) - git clone https://github.com/chhsiao1981/cc-python-template.git .cc && ./.cc/scripts/init_dev.sh && source __/bin/activate + git clone https://github.com/chhsiao1981/cc-python-template.git .cc && ./.cc/scripts/init_dev.sh && source .venv/bin/activate * create module: ./scripts/dev_module.sh diff --git a/scripts/init_dev.sh b/scripts/init_dev.sh index 1e5f0fb..5212923 100755 --- a/scripts/init_dev.sh +++ b/scripts/init_dev.sh @@ -1,7 +1,7 @@ #!/bin/bash # virtualenv_dir -virtualenv_dir="${BASH_ARGV[0]:-__}" +virtualenv_dir="${BASH_ARGV[0]:-.venv}" # cc_dir cc_dir="${BASH_ARGV[1]:-.cc}" @@ -70,4 +70,4 @@ fi # done echo -e "\033[1;32m[INFO]\033[m done" -echo -e "\033[1;32m[INFO]\033[m remember to: \033[1;32m. ${virtualenv_dir}/bin/activate\033[m" +echo -e "\033[1;32m[INFO]\033[m remember to: \033[1;32msource ${virtualenv_dir}/bin/activate\033[m"