[RTOP-26] Update webserver/webserver.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Lucas Cordeiro Butzke
2025-07-21 10:07:20 -03:00
committed by GitHub
co-authored by coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent 174c0b28ae
commit d364456f24
+4 -2
View File
@@ -32,8 +32,10 @@ logger = logging.getLogger(__name__)
openplc_runtime = openplc.runtime()
CERT_FILE = "certOPENPLC.pem"
KEY_FILE = "keyOPENPLC.pem"
from pathlib import Path
BASE_DIR = Path(__file__).parent
CERT_FILE = (BASE_DIR / "certOPENPLC.pem").resolve()
KEY_FILE = (BASE_DIR / "keyOPENPLC.pem").resolve()
HOSTNAME = "localhost"
def restapi_callback_get(argument: str, data: dict) -> dict: