Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions avaframeConnector_commonFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,7 @@ def runAndCheck(command, self, feedback):

# Handle ERRORs
elif "ERROR" in line:
cleanErrorMsg = "ERROR:" + line.split(":")[-1]
raise QgsProcessingException(self.tr(cleanErrorMsg))
raise QgsProcessingException(self.tr(line))
else:
print(line, flush=True)
feedback.pushInfo(line)
14 changes: 12 additions & 2 deletions runIn1RelInfo_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@


import pathlib
import subprocess
import os
import platform


from qgis.PyQt.QtCore import QCoreApplication
Expand Down Expand Up @@ -147,10 +148,19 @@ def processAlgorithm(self, parameters, context, feedback):
feedback.pushInfo("Find the release area info file here:")
feedback.pushInfo(str(resDir.resolve()))


feedback.pushInfo("---------------------------------\n")

# Trying to show the output folder in the file explorer
outputDir = os.path.dirname(resDir)
if platform.system() == 'Windows':
os.startfile(outputDir)
elif platform.system() == 'Darwin': # macOS
os.system(f'open "{outputDir}"')
else: # Linux
os.system(f'xdg-open "{outputDir}"')

return {}
# return {self.OUTPUT: rasterResults}

def name(self):
"""
Expand Down