diff --git a/rokae/codes/openapi.cp313-win_amd64.pyd b/rokae/codes/openapi.cp313-win_amd64.pyd index 1e78059..6b03508 100644 Binary files a/rokae/codes/openapi.cp313-win_amd64.pyd and b/rokae/codes/openapi.cp313-win_amd64.pyd differ diff --git a/rokae/codes/openapi.py b/rokae/codes/openapi.py index 1ce23eb..b8daf33 100644 --- a/rokae/codes/openapi.py +++ b/rokae/codes/openapi.py @@ -856,7 +856,7 @@ class PreDos(object): class RobotInit(object): - def __init__(self, hr: HmiRequest, pd: PreDos, conf_path: str): + def __init__(self, hr: HmiRequest, pd: PreDos, conf_path: str = ""): self.hr: HmiRequest = hr self.pd: PreDos = pd self.conf_path: str = conf_path @@ -876,9 +876,9 @@ class RobotInit(object): if self.conf_path == "": self.conf_path = f"{clibs.base_path}/assets/confs" config_files = [ - f"{self.conf_path}/fieldbus_device.json", + f"{clibs.base_path}/assets/confs/fieldbus_device.json", f"{self.conf_path}/registers.json", - f"{self.conf_path}/assets/confs/registers.xml" + f"{self.conf_path}/registers.xml" ] for config_file in config_files: filename = os.path.basename(config_file) diff --git a/rokae/codes/openapi.pyi b/rokae/codes/openapi.pyi index 905b333..a6a03fb 100644 --- a/rokae/codes/openapi.pyi +++ b/rokae/codes/openapi.pyi @@ -212,7 +212,7 @@ class PreDos: def pull_file_from_server(self, server_file: str, local_file: str): ... class RobotInit: - def __init__(self, hr: HmiRequest, pd: PreDos, conf_path: str) -> None: ... + def __init__(self, hr: HmiRequest, pd: PreDos, conf_path: str = '') -> None: ... def robot_init(self) -> None: ... def fw_updater(self, fw_file: str): ... diff --git a/rokae/codes/stub/openapi.pyi b/rokae/codes/stub/openapi.pyi index 403aab9..047e4d1 100644 --- a/rokae/codes/stub/openapi.pyi +++ b/rokae/codes/stub/openapi.pyi @@ -237,7 +237,7 @@ class RobotInit: hr: HmiRequest pd: PreDos conf_path: str - def __init__(self, hr: HmiRequest, pd: PreDos, conf_path: str) -> None: ... + def __init__(self, hr: HmiRequest, pd: PreDos, conf_path: str = '') -> None: ... def robot_init(self) -> None: ... def fw_updater(self, fw_file: str): ...