From 3e484c74b1946c4710f7aaa2537f03e7815f6f43 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Mon, 24 Jul 2023 10:32:30 +0200 Subject: [PATCH] the rest. --- examples/helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/helper.py b/examples/helper.py index 0f347ffc9..6e6f226b1 100755 --- a/examples/helper.py +++ b/examples/helper.py @@ -125,13 +125,13 @@ def get_certificate(suffix: str): delimiter = "\\" if os.name == "nt" else "/" cwd = os.getcwd().split(delimiter)[-1] if cwd == "examples": - path = "." + path = "." # pragma no cover elif cwd == "sub_examples": - path = "../../examples" + path = "../../examples" # pragma no cover elif cwd == "test": path = "../examples" elif cwd == "pymodbus": - path = "examples" + path = "examples" # pragma no cover else: raise RuntimeError(f"**Error** Cannot find certificate path={cwd}") return f"{path}/certificates/pymodbus.{suffix}"