2023-05-05 18:25:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-07 14:06:24 +02:00
|
|
|
ver="3.11"
|
|
|
|
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-07 14:06:24 +02:00
|
|
|
if [ -d .venv/ ]
|
2023-05-05 18:25:19 +02:00
|
|
|
then
|
|
|
|
source .venv/bin/activate
|
2023-10-07 14:06:24 +02:00
|
|
|
$py pyeamu.py
|
2023-05-05 18:25:19 +02:00
|
|
|
else
|
2023-10-07 14:06:24 +02:00
|
|
|
$py -m venv .venv
|
2023-05-05 18:25:19 +02:00
|
|
|
source .venv/bin/activate
|
2023-10-07 14:06:24 +02:00
|
|
|
$py -m pip install -U -r requirements.txt
|
|
|
|
$py pyeamu.py
|
2023-05-05 18:25:19 +02:00
|
|
|
fi
|