File size: 535 Bytes
2edb151
 
 
676f5d4
 
 
 
 
 
 
2edb151
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# Linux / macOS: double-click start-ui.command on Mac, or run this script.
set -euo pipefail
SOURCE="${BASH_SOURCE[0]:-$0}"
while [[ -L "$SOURCE" ]]; do
  DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
  SOURCE="$(readlink "$SOURCE")"
  [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
done
ROOT="$(cd "$(dirname "$SOURCE")/.." && pwd)"
cd "$ROOT"
if [[ ! -x .venv/bin/python ]]; then
  echo "Creating .venv (one time)…"
  python3 -m venv .venv
  .venv/bin/pip install -e ".[dev]"
fi
exec .venv/bin/python -m app.launch