AnkiNoteTemplate/antp.sh
2021-12-31 16:48:37 +03:00

12 lines
192 B
Bash
Executable file

#!/bin/sh -e
readonly module=antp
if ! [ -d "$module" ]; then
readonly this=$(readlink -f -- "$0")
readonly dir=$(dirname -- "$this")
cd -- "$dir" || exit 1
fi
python3 -m "$module" "$@"