Skip to content

Commit

Permalink
[Processing] Let a script know where what is its description file.
Browse files Browse the repository at this point in the history
Usefull if it needs to access other files located relative to the script
location.
  • Loading branch information
radosuav committed Jan 22, 2015
1 parent 4aafa92 commit 8fc6dd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/script/ScriptAlgorithm.py
Expand Up @@ -253,6 +253,7 @@ def processAlgorithm(self, progress):

ns = {}
ns['progress'] = progress
ns['scriptDescriptionFile'] = self.descriptionFile

for param in self.parameters:
ns[param.name] = param.value
Expand Down

0 comments on commit 8fc6dd8

Please sign in to comment.