# HG changeset patch # User Edouard Tisserant <edouard@beremiz.fr> # Date 1740583035 -3600 # Node ID 8a9986e26dfc2746b6617ea09c46c36df070e74f # Parent fe41562050ed5c46287ec023ecb7ee2dc5e0ed5d python runtime: fix behaviour of -s CLI option when given file doesn't exist. diff -r fe41562050ed -r 8a9986e26dfc Beremiz_service.py --- a/Beremiz_service.py Tue Feb 18 16:22:54 2025 +0100 +++ b/Beremiz_service.py Wed Feb 26 16:17:15 2025 +0100 @@ -169,9 +169,9 @@ _PSKpath = os.path.join(a, "psk.txt") if os.path.isfile(_PSKpath): PSKpath = _PSKpath - elif os.path.isfile(a) or os.path.isdir(os.path.dirname(a)): + elif os.path.isfile(a) or os.path.isdir(paths.AbsDir(a)): PSKpath = a - KeyStore = os.path.dirname(a) + KeyStore = paths.AbsDir(a) elif o == "-e": fnameanddirname = list(os.path.split(os.path.realpath(a)))