-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding the docs for getting the repo up and running
- Loading branch information
1 parent
955b475
commit 2714b3c
Showing
5 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# navigate to directory | ||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | ||
cd $SCRIPTPATH | ||
|
||
# Define the PYTHONPATH for the terminal session | ||
cd ../src | ||
export PYTHONPATH=$(pwd) | ||
cd .. | ||
|
||
# Configure the virtual environment if needed | ||
if [ -d "venv" ]; then | ||
echo "existing python virtual environment exists." | ||
else | ||
echo "python virtual environment does not exist. Creating one" | ||
python3 -m venv venv | ||
fi | ||
|
||
# start the terminal session | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
echo "now running in virtual environment. Execute the 'exit' to exit the virtual env terminal" | ||
bash --norc |
File renamed without changes.