[processing/otb]divide into 2 functions

This commit is contained in:
Alexia Mondot 2015-06-25 16:39:27 +02:00 committed by volaya
parent 41c15e770a
commit 04907d199f

View File

@ -641,6 +641,12 @@ def create_xml_descriptors():
# except Exception, e:
# logger.error(traceback.format_exc())
def create_html_description():
logger = get_OTB_log()
if not os.path.exists("description/doc"):
os.mkdir("description/doc")
for available_app in otbApplication.Registry.GetAvailableApplications():
try:
fh = open("description/doc/%s.html" % available_app, "w")
@ -681,6 +687,7 @@ if __name__ == "__main__":
raise Exception("OTB python plugins must be installed and available in PYTHONPATH")
create_xml_descriptors()
create_html_description()
# Exit applications
QgsApplication.exitQgis()