Skip to content

Commit

Permalink
the rest.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Jul 24, 2023
1 parent 392ecdc commit 3e484c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 3e484c7

Please sign in to comment.