Skip to content

Commit

Permalink
[processing] fix #10659
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 20, 2014
1 parent f4cb03a commit 5a1d24d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def execute(self):
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')

0 comments on commit 5a1d24d

Please sign in to comment.