From 9126ffa211abf9184ac8748ef97b82c918c79331 Mon Sep 17 00:00:00 2001 From: drmext <71258889+drmext@users.noreply.github.com> Date: Fri, 5 May 2023 16:25:19 +0000 Subject: [PATCH] Add venv shell script --- start.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..17dd396 --- /dev/null +++ b/start.sh @@ -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