Should be overriden by plugins to perform cleanup or other persistent tasks to restore the system to pre-enabled state (e.g., removing hooks, deleting temporary data, or restoring system state). Called once each time a plugin is disabled. If this method fails to comp
(self)
| 68 | pass |
| 69 | |
| 70 | def disable(self): |
| 71 | """ |
| 72 | Should be overriden by plugins to perform cleanup or other persistent tasks |
| 73 | to restore the system to pre-enabled state (e.g., removing hooks, deleting |
| 74 | temporary data, or restoring system state). Called once each time a plugin |
| 75 | is disabled. If this method fails to complete or throws an exception, it will |
| 76 | still be disabled by the system. |
| 77 | :return: none |
| 78 | """ |
| 79 | pass |
| 80 | |
| 81 | def get_persistent_path(self, *paths): |
| 82 | return get_plugins_persistent_path(self.name, *paths) |