(self, structname: str, fpath: pathlib.Path)
| 5548 | return subprocess.call(cmd) |
| 5549 | |
| 5550 | def __create_template(self, structname: str, fpath: pathlib.Path) -> None: |
| 5551 | template = f"""from ctypes import * |
| 5552 | |
| 5553 | class {structname}(Structure): |
| 5554 | _fields_ = [] |
| 5555 | |
| 5556 | _values_ = [] |
| 5557 | """ |
| 5558 | with fpath.open("w") as f: |
| 5559 | f.write(template) |
| 5560 | return |
| 5561 | |
| 5562 | |
| 5563 | @register |
no test coverage detected