aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authordennis <d@ennis.no>2023-01-31 21:41:52 +0100
committerdennis <d@ennis.no>2023-02-01 12:26:35 +0100
commit44fc77b7a9f7c81342f85642961d517dffc073bf (patch)
tree3bf11154711753ed8b42d47b28c848d036063305 /run.sh
parentneohub should use queue as well (diff)
downloadenergyscripts-44fc77b7a9f7c81342f85642961d517dffc073bf.tar.gz
cd to directory instead, so we have right working dir
Diffstat (limited to 'run.sh')
-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