Start: Fix startup with new argparser

Since the full argparser requires pydantic, gate it until all dependencies
are installed.

Also if the venv is deleted, assume that start_options.json is invalid
as well.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-09-21 14:33:15 -04:00
parent 16abaf0922
commit 3c8384ee71
4 changed files with 79 additions and 22 deletions

View File

@@ -8,6 +8,11 @@ else
if [ ! -d "venv" ]; then
echo "Venv doesn't exist! Creating one for you."
python3 -m venv venv
if [ -f "start_options.json" ]; then
echo "Removing old start_options.json"
rm -rf start_options.json
fi
fi
echo "Activating venv"