New: executable and bin location

This commit is contained in:
L-Nafaryus 2021-05-31 17:29:23 +05:00
parent 4c18dc1b33
commit 7ac40272ff

View File

@ -1,18 +1,21 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
cd ${DIR}
if [ "$1" = "clean" ]; then
git clean -fdx
exit 0
elif [ "$1" = "init" ]; then
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
python -m pip install requirements.txt
python -m pip install -r requirements.txt
deactivate
elif [ "$1" = "run" ]; then
source ${OPENFOAM}
source env/bin/activate
python ${DIR}/anisotropy/anisotropy.py
deactivate
fi