32 lines
468 B
Bash
Executable file
32 lines
468 B
Bash
Executable file
#!/bin/bash
|
|
|
|
PIP_PACKAGES=("python-dotenv" "pytest-playwright")
|
|
|
|
if [ "$1" == "del" ]; then
|
|
rm -rf .venv
|
|
echo ".venv/ removed, restart the program again"
|
|
fi
|
|
|
|
if [ -d .venv ]; then
|
|
echo ".venv/ found!"
|
|
|
|
source .venv/bin/activate
|
|
|
|
python src/main.py
|
|
|
|
else
|
|
echo ".venv/ not found!"
|
|
echo "Creating new venv/"
|
|
|
|
python -m venv .venv
|
|
source .venv/bin/activate
|
|
|
|
for i in "${PIP_PACKAGES[@]}"
|
|
do
|
|
pip install $i
|
|
done
|
|
|
|
playwright install
|
|
|
|
python src/main.py
|
|
fi
|