We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db78c04 commit 53afb8fCopy full SHA for 53afb8f
requirements.txt
@@ -4,3 +4,4 @@ pytest==7.4.2
4
pytest-cov==4.1.0
5
pylint==2.17.5
6
nbval==0.10.0
7
+python-dotenv==1.0.0
setup.sh
@@ -5,8 +5,9 @@
#create a virtualenv
python -m venv .venv
8
-# append it to bash so every shell launches with it
9
-echo 'source .venv/bin/activate' >> ~/.bashrc
+
+# 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
11
12
# source virtualenv
13
source .venv/bin/activate
0 commit comments