We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4cb03a commit 5a1d24dCopy full SHA for 5a1d24d
python/plugins/processing/script/AddScriptFromFileAction.py
@@ -51,6 +51,6 @@ def execute(self):
51
QtGui.QMessageBox.warning(self.toolbox, "Error reading script", "The selected file does not contain a valid script")
52
return
53
destFilename = os.path.join(ScriptUtils.scriptsFolder(), os.path.basename(filename))
54
- with open(destFilename) as f:
+ with open(destFilename, "w") as f:
55
f.write(script.script)
56
self.toolbox.updateProvider('script')
0 commit comments