aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-01-30 20:05:25 +0100
committerDennis Eriksen <d@ennis.no>2023-01-30 20:05:25 +0100
commit577f3b123b319414b4fa50ff9d2838015ccb372e (patch)
treeffccfa8ce30f1e1876e66adec6fe67276c3d1ad9 /run.sh
parentadding a few dependencies (diff)
downloadenergyscripts-577f3b123b319414b4fa50ff9d2838015ccb372e.tar.gz
adding handler for tempsensors on mqtt
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 bca78be..6782089 100755
--- a/run.sh
+++ b/run.sh
@@ -2,7 +2,8 @@
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
-
+setopt all_export
source ${0:h}/.env
-source ${0:h}/venv/bin/activate
-python3 ${0:h}/$1
+unsetopt all_export
+
+${0:h}/venv/bin/python3 ${0:h}/$1