Skip to content
Permalink
Browse files

[processing] Fix add script from file.

  • Loading branch information
akbargumbira committed Jul 18, 2016
1 parent c628c0f commit 20a2a2002590e9e7be22fcf5f2939d6de4218f55
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 20a2a20

Please sign in to comment.
You can’t perform that action at this time.