def plugin_workdir(self): """ A work directory that is unique to the plugin and the service ID. """ if self.task.plugin is None: return None plugin_workdir = u'{0}/plugins/{1}/{2}'.format(self._workdir, self.service.id, self.task.plugin.name) file.makedirs(plugin_workdir) return plugin_workdir
def plugin_workdir(self): """ A work directory that is unique to the plugin and the deployment id """ if not self.task.plugin_name: return None plugin_workdir = '{0}/plugins/{1}/{2}'.format(self._workdir, self.deployment.id, self.task.plugin_name) file.makedirs(plugin_workdir) return plugin_workdir