11 lines
283 B
Bash
Executable File
11 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
cd `dirname $(readlink -f "$0")`/../Python
|
|
if [ ! -d .venv ];then
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install --upgrade pip
|
|
[ -f requirements.txt ] && pip install -r requirements.txt
|
|
else
|
|
source .venv/bin/activate
|
|
fi
|
|
python3 "run.py" |