mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2024-07-30 21:27:34 +00:00
Improved TagStudio.sh
"set -e" to abort on error "cd …" to prevent creating .venv if script is launched outside git dir "[ … ]" to skip creating venv when it already exists
This commit is contained in:
parent
f71b947673
commit
aedc5afefa
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
python3 -m venv .venv
|
set -e
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
! [ -d .venv ] && python3 -m venv .venv
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python tagstudio/tag_studio.py
|
python tagstudio/tag_studio.py
|
||||||
|
|
Loading…
Reference in a new issue