aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/run.sh b/run.sh
index 6782089..a46ec0b 100755
--- a/run.sh
+++ b/run.sh
@@ -2,8 +2,9 @@
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
+cd ${0:h}
+
setopt all_export
-source ${0:h}/.env
+source .env
unsetopt all_export
-
-${0:h}/venv/bin/python3 ${0:h}/$1
+./venv/bin/python3 $1