Add venv shell script

This commit is contained in:
drmext 2023-05-05 16:25:19 +00:00
parent 21872c04f9
commit 9126ffa211
No known key found for this signature in database
GPG Key ID: F1ED48FFE79A6961

18
start.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
if ! command -v python3.11 &> /dev/null
then
echo "python3.11 not found"
exit
fi
if [ -e .venv/lib/python3.11/site-packages/ujson*.so ]
then
source .venv/bin/activate
python pyeamu.py
else
python3.11 -m venv .venv
source .venv/bin/activate
pip install -U -r requirements.txt
python pyeamu.py
fi