mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fix #10659
This commit is contained in:
parent
f4cb03ac29
commit
5a1d24dd27
@ -51,6 +51,6 @@ class AddScriptFromFileAction(ToolboxAction):
|
||||
QtGui.QMessageBox.warning(self.toolbox, "Error reading script", "The selected file does not contain a valid script")
|
||||
return
|
||||
destFilename = os.path.join(ScriptUtils.scriptsFolder(), os.path.basename(filename))
|
||||
with open(destFilename) as f:
|
||||
with open(destFilename, "w") as f:
|
||||
f.write(script.script)
|
||||
self.toolbox.updateProvider('script')
|
Loading…
x
Reference in New Issue
Block a user