def helpUrl(self): helpPath = GdalUtils.gdalHelpPath() if helpPath == '': return None if os.path.exists(helpPath): return QUrl.fromLocalFile(os.path.join(helpPath, '{}.html'.format(self.commandName()))).toString() else: return helpPath + '{}.html'.format(self.commandName())
def shortHelp(self): helpPath = GdalUtils.gdalHelpPath() if helpPath == '': return if os.path.exists(helpPath): url = QUrl.fromLocalFile(os.path.join(helpPath, '{}.html'.format(self.commandName()))).toString() else: url = helpPath + '{}.html'.format(self.commandName()) return self._formatHelp('''This algorithm is based on the GDAL {} module. For more info, see the <a href={}> module help</a> '''.format(self.commandName(), url))