Skip to content

Commit

Permalink
[processing/otb]divide into 2 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
amondot authored and volaya committed Nov 4, 2015
1 parent 41c15e7 commit 04907d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/plugins/processing/algs/otb/maintenance/OTBHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 04907d1

Please sign in to comment.