:return: whether this plugin is persistent (stored in the /plugins directory, instead of /app/media/plugins which are transient)
(self)
| 141 | return "/plugins/{}/{}".format(self.get_name(), path) |
| 142 | |
| 143 | def is_persistent(self): |
| 144 | """ |
| 145 | :return: whether this plugin is persistent (stored in the /plugins directory, |
| 146 | instead of /app/media/plugins which are transient) |
| 147 | """ |
| 148 | return ".." in os.path.relpath(self.get_path(), get_plugins_persistent_path()) |
| 149 | |
| 150 | def template_path(self, path): |
| 151 | """ |