[tools] Add generate_subways.sh script

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-03-04 22:39:17 +07:00
committed by Konstantin Pastbin
parent ef6ffa299d
commit 01aecbfac4
6 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
PYTHON="${PYTHON:-python3}"
function activate_venv_at_path() {
path=$1
if [ ! -d "$path/".venv ]; then
"$PYTHON" -m venv "$path"/.venv
fi
source "$path"/.venv/bin/activate
if [ -f "$path"/requirements.txt ]; then
pip install --upgrade pip
pip install -r "$path"/requirements.txt
fi
}