MonkeyBusiness/start.sh
2023-10-07 12:06:24 +00:00

22 lines
311 B
Bash

#!/bin/bash
ver="3.11"
py="python$ver"
if ! command -v $py &> /dev/null
then
echo "$py not found"
exit
fi
if [ -d .venv/ ]
then
source .venv/bin/activate
$py pyeamu.py
else
$py -m venv .venv
source .venv/bin/activate
$py -m pip install -U -r requirements.txt
$py pyeamu.py
fi