Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add hint about pushing information to the user in script template
  • Loading branch information
Gustry committed Jul 3, 2018
1 parent 22ba501 commit 0685197
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/script/ScriptTemplate.py
Expand Up @@ -149,6 +149,9 @@ def processAlgorithm(self, parameters, context, feedback):
source.sourceCrs()
)

# Send some information to the user
feedback.pushInfo('CRS is {}'.format(source.sourceCrs().authid()))

# If sink was not created, throw an exception to indicate that the algorithm
# encountered a fatal error. The exception text can be any string, but in this
# case we use the pre-built invalidSinkError method to return a standard
Expand Down

0 comments on commit 0685197

Please sign in to comment.