#!/bin/bash
# Corrisend launcher: ./sc <command>   (./sc --help for the list)
cd "$(dirname "$0")"
if [ ! -x .venv/bin/python ]; then
  echo "First-time setup..."
  python3 -m venv .venv && .venv/bin/pip install -q --upgrade pip && .venv/bin/pip install -q -r requirements.txt || exit 1
fi
exec .venv/bin/python -m salescomms "$@"
