#!/bin/sh -euf here=$(dirname "$(realpath "$0")") # cd "$here" python_bin="$here"/.venv/bin/python [ -z "${DEBUG:-}" ] || set -x # time python -m cProfile -s tottime -m metadex -n scan ~ >profile-scan.txt PYTHONPATH="$here" \ "$python_bin" -m metadex \ --db "$here/metadex.sqlite" \ --ignore-from "$here/metadex.ignore" \ "$@"