diff --git a/TagStudio.sh b/TagStudio.sh index 762f752f..3c515614 100755 --- a/TagStudio.sh +++ b/TagStudio.sh @@ -1,5 +1,7 @@ #! /usr/bin/env bash -python3 -m venv .venv +set -e +cd "$(dirname "$0")" +! [ -d .venv ] && python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt python tagstudio/tag_studio.py