Skip to content
Permalink
Browse files

Merge pull request #3316 from akbargumbira/master

[processing] fix add script from file
  • Loading branch information
alexbruy committed Jul 18, 2016
2 parents c628c0f + 20a2a20 commit 2addf31ce7593eaaa3910c753025d41cafbac6c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/script/AddScriptFromFileAction.py
@@ -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.
You can’t perform that action at this time.