Skip to content

Commit

Permalink
Merge pull request #19 from chhsiao1981/to-venv
Browse files Browse the repository at this point in the history
default virtualenv_dir as .venv
  • Loading branch information
chhsiao1981 authored Oct 19, 2024
2 parents 3e88178 + 9ad36a5 commit bb634ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions scripts/init_dev.sh
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down Expand Up @@ -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"

0 comments on commit bb634ce

Please sign in to comment.