Skip to content

Commit

Permalink
Merge pull request #3316 from akbargumbira/master
Browse files Browse the repository at this point in the history
[processing] fix add script from file
alexbruy authored Jul 18, 2016
2 parents c628c0f + 20a2a20 commit 2addf31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ def execute(self):
self.tr('Error reading script', 'AddScriptFromFileAction'),
self.tr('The selected file does not contain a valid script', 'AddScriptFromFileAction'))
return
destFilename = os.path.join(ScriptUtils.scriptsFolder(), os.path.basename(filename))
destFilename = os.path.join(ScriptUtils.defaultScriptsFolder(), os.path.basename(filename))
with open(destFilename, 'w') as f:
f.write(script.script)
algList.reloadProvider('script')

0 comments on commit 2addf31

Please sign in to comment.