Skip to content
Permalink
Browse files

[processing/otb]divide into 2 functions

  • Loading branch information
amondot authored and volaya committed Nov 4, 2015
1 parent 41c15e7 commit 04907d199ffbd454da6314699f4de0210a526fca
Showing with 7 additions and 0 deletions.
  1. +7 −0 python/plugins/processing/algs/otb/maintenance/OTBHelper.py
@@ -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 @@ def create_xml_descriptors():
raise Exception("OTB python plugins must be installed and available in PYTHONPATH")

create_xml_descriptors()
create_html_description()

# Exit applications
QgsApplication.exitQgis()

0 comments on commit 04907d1

Please sign in to comment.
You can’t perform that action at this time.