update scripts

This commit is contained in:
youdontneedthis
2024-07-21 02:08:25 +00:00
parent d6de4e55e8
commit 3d4e4636f7
2 changed files with 7 additions and 8 deletions

View File

@@ -1,11 +1,10 @@
#!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
PYTHON_VEN="$parent_path"/venv/bin/python
if [ ! -f $PYTHON_VEN ]; then
echo "Setting up new VENV"
python -m venv venv
python3 -m venv venv
echo "Installing requirements."
source ./venv/bin/activate
pip install -r requirements.txt
@@ -13,4 +12,4 @@ if [ ! -f $PYTHON_VEN ]; then
fi
echo "Start DB Creation"
$parent_path/venv/bin/python createrushdatabase.py
$parent_path/venv/bin/python createrushdatabase.py