Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #7333 from Gustry/script_template
add warning about print() and how to load layers in Processing algs
  • Loading branch information
m-kuhn committed Jul 18, 2018
2 parents d43f1a2 + 0685197 commit 60d2cd3
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 60d2cd3

Please sign in to comment.