Skip to content

Commit

Permalink
[processing] Fix add script from file.
Browse files Browse the repository at this point in the history
  • Loading branch information
akbargumbira committed Jul 18, 2016
1 parent c628c0f commit 20a2a20
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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.