work from any dir

This commit is contained in:
Ren Tatsumoto 2021-04-20 13:48:24 +03:00
parent 4b58c0165f
commit 25e2f53fb8

View file

@ -1,3 +1,9 @@
#!/bin/sh
#!/bin/sh -e
python3 -m antp "$@"
readonly this=$(readlink -f -- "$0")
readonly dir=$(dirname -- "$this")
readonly module=antp
cd -- "$dir" || exit
python3 -m "$module" "$@"