MonkeyBusiness/start.sh

20 lines
246 B
Bash
Raw Normal View History

2023-05-05 18:25:19 +02:00
#!/bin/bash
2023-10-29 01:44:56 +02:00
ver="3.12"
2023-10-07 14:06:24 +02:00
py="python$ver"
if ! command -v $py &> /dev/null
2023-05-05 18:25:19 +02:00
then
2023-10-07 14:06:24 +02:00
echo "$py not found"
2023-05-05 18:25:19 +02:00
exit
fi
2023-10-29 01:44:56 +02:00
if [ ! -d .venv/ ]
2023-05-05 18:25:19 +02:00
then
2023-10-07 14:06:24 +02:00
$py -m venv .venv
2023-05-05 18:25:19 +02:00
fi
2023-10-29 01:44:56 +02:00
source .venv/bin/activate
$py -m pip install -r requirements.txt
$py pyeamu.py