metadex/run
2022-08-14 20:41:58 +02:00

16 lines
344 B
Bash
Executable file

#!/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" \
"$@"