Skip to content

Commit 2addf31

Browse files
authoredJul 18, 2016
Merge pull request #3316 from akbargumbira/master
[processing] fix add script from file
2 parents c628c0f + 20a2a20 commit 2addf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/script/AddScriptFromFileAction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def execute(self):
6565
self.tr('Error reading script', 'AddScriptFromFileAction'),
6666
self.tr('The selected file does not contain a valid script', 'AddScriptFromFileAction'))
6767
return
68-
destFilename = os.path.join(ScriptUtils.scriptsFolder(), os.path.basename(filename))
68+
destFilename = os.path.join(ScriptUtils.defaultScriptsFolder(), os.path.basename(filename))
6969
with open(destFilename, 'w') as f:
7070
f.write(script.script)
7171
algList.reloadProvider('script')

0 commit comments

Comments
 (0)
Please sign in to comment.