Get the Python module associated with the plugin. Returns: PythonModule: The Python module instance.
(cls)
| 307 | |
| 308 | @classproperty |
| 309 | def python_module(cls) -> PythonModule: |
| 310 | """ |
| 311 | Get the Python module associated with the plugin. |
| 312 | |
| 313 | Returns: |
| 314 | PythonModule: The Python module instance. |
| 315 | """ |
| 316 | valid_module = cls.__module__.replace(str(cls.python_base_path), "") |
| 317 | # remove the starting dot |
| 318 | valid_module = valid_module[1:] |
| 319 | return PythonModule.objects.get( |
| 320 | module=f"{valid_module}.{cls.__name__}", base_path=cls.python_base_path |
| 321 | ) |
| 322 | |
| 323 | @classmethod |
| 324 | def update(cls) -> bool: |