blob: a31acb668f873111d14e0d7f7b09a5a427f3611b (
plain) (
tree)
|
|
#!/usr/bin/env zsh
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
cd ${0:h}
setopt all_export
source .env
unsetopt all_export
script=$1
shift
if [[ -f $script ]]; then
./venv/bin/python3 $script $@
elif [[ -f scripts/$script ]]; then
./venv/bin/python3 scripts/$script $@
else
print -u2 "Computer says no" && exit 1
fi
exit $?
|