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"