diff options
author | dennis <d@ennis.no> | 2023-01-31 21:41:52 +0100 |
---|---|---|
committer | dennis <d@ennis.no> | 2023-02-01 12:26:35 +0100 |
commit | 44fc77b7a9f7c81342f85642961d517dffc073bf (patch) | |
tree | 3bf11154711753ed8b42d47b28c848d036063305 /run.sh | |
parent | neohub should use queue as well (diff) | |
download | energyscripts-44fc77b7a9f7c81342f85642961d517dffc073bf.tar.gz |
cd to directory instead, so we have right working dir
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |