Skip to content

Commit 53afb8f

Browse files
committed
fix
1 parent db78c04 commit 53afb8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pytest==7.4.2
44
pytest-cov==4.1.0
55
pylint==2.17.5
66
nbval==0.10.0
7+
python-dotenv==1.0.0

Diff for: setup.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#create a virtualenv
66
python -m venv .venv
77

8-
# append it to bash so every shell launches with it
9-
echo 'source .venv/bin/activate' >> ~/.bashrc
8+
9+
# append it to bash (if not there) so every shell launches with it
10+
[[ $(tail -n1 ~/.bashrc) != 'source .venv/bin/activate' ]] && echo 'source .venv/bin/activate' >> ~/.bashrc
1011

1112
# source virtualenv
1213
source .venv/bin/activate

0 commit comments

Comments
 (0)