From 44fc77b7a9f7c81342f85642961d517dffc073bf Mon Sep 17 00:00:00 2001 From: dennis Date: Tue, 31 Jan 2023 21:41:52 +0100 Subject: cd to directory instead, so we have right working dir --- run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'run.sh') 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 -- cgit v1.2.3