Skip to content

Commit bb634ce

Browse files
authored
Merge pull request #19 from chhsiao1981/to-venv
default virtualenv_dir as .venv
2 parents 3e88178 + 9ad36a5 commit bb634ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cookiecutter python template (pkgs, modules and tests)
44

5-
git clone https://github.com/chhsiao1981/cc-python-template.git .cc && ./.cc/scripts/init_dev.sh && source __/bin/activate
5+
git clone https://github.com/chhsiao1981/cc-python-template.git .cc && ./.cc/scripts/init_dev.sh && source .venv/bin/activate
66

77
* create module: ./scripts/dev_module.sh
88

scripts/init_dev.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# virtualenv_dir
4-
virtualenv_dir="${BASH_ARGV[0]:-__}"
4+
virtualenv_dir="${BASH_ARGV[0]:-.venv}"
55

66
# cc_dir
77
cc_dir="${BASH_ARGV[1]:-.cc}"
@@ -70,4 +70,4 @@ fi
7070

7171
# done
7272
echo -e "\033[1;32m[INFO]\033[m done"
73-
echo -e "\033[1;32m[INFO]\033[m remember to: \033[1;32m. ${virtualenv_dir}/bin/activate\033[m"
73+
echo -e "\033[1;32m[INFO]\033[m remember to: \033[1;32msource ${virtualenv_dir}/bin/activate\033[m"

0 commit comments

Comments
 (0)