beremiz

c1b4f72b2f01
Parents 5bc50ff989be
Children 6f6e60862296
python runtime: fix behaviour of -c when given file do not exist yet
--- a/Beremiz_service.py Wed Feb 26 16:31:59 2025 +0100
+++ b/Beremiz_service.py Fri Feb 28 16:41:26 2025 +0100
@@ -161,9 +161,9 @@
_PSKpath = os.path.join(a, "wampconf.json")
if os.path.isfile(_PSKpath):
wampconf = _PSKpath
- elif os.path.isfile(a):
+ elif os.path.isfile(a) or os.path.isdir(paths.AbsDir(a)):
wampconf = a
- ConfDir = os.path.dirname(a)
+ ConfDir = paths.AbsDir(a)
elif o == "-s":
if a == "off":
PSKpath = None