|
@@ -434,15 +434,34 @@ def help(self): |
|
|
else: |
|
|
return False, None |
|
|
|
|
|
def shortHelp(self): |
|
|
if self.descriptionFile is None: |
|
|
return None |
|
|
helpFile = unicode(self.descriptionFile) + '.help' |
|
|
if os.path.exists(helpFile): |
|
|
with open(helpFile) as f: |
|
|
try: |
|
|
descriptions = json.load(f) |
|
|
if 'ALG_DESC' in descriptions: |
|
|
return self._formatHelp(unicode(descriptions['ALG_DESC'])) |
|
|
except: |
|
|
return None |
|
|
return None |
|
|
|
|
|
def getParameterDescriptions(self): |
|
|
descs = {} |
|
|
helpfile = unicode(self.descriptionFile) + '.help' |
|
|
if os.path.exists(helpfile): |
|
|
if self.descriptionFile is None: |
|
|
return descs |
|
|
helpFile = unicode(self.descriptionFile) + '.help' |
|
|
if os.path.exists(helpFile): |
|
|
with open(helpFile) as f: |
|
|
descriptions = json.load(f) |
|
|
for param in self.parameters: |
|
|
if param.name in descriptions: |
|
|
descs[param.name] = unicode(descriptions[param.name]) |
|
|
try: |
|
|
descriptions = json.load(f) |
|
|
for param in self.parameters: |
|
|
if param.name in descriptions: |
|
|
descs[param.name] = unicode(descriptions[param.name]) |
|
|
except: |
|
|
return None |
|
|
return descs |
|
|
|
|
|
def checkBeforeOpeningParametersDialog(self): |
|
|