Skip to content
Permalink
Browse files

[pyqgis-console] fixes #9097 (thanks to Minoru Akagi)

  • Loading branch information
slarosa committed Dec 1, 2013
1 parent dcfccbc commit f21562c86f1cdbf8181176904e382f26aafb1da9
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/console/console_editor.py
@@ -581,7 +581,8 @@ def runScriptCode(self):
tmpFile = self.createTempFile()
filename = tmpFile

self.parent.pc.shell.runCommand(u"execfile(r'{0}')".format(filename))
self.parent.pc.shell.runCommand(u"execfile(u'{0}'.encode('{1}'))"
.format(filename.replace("\\", "/"), sys.getfilesystemencoding()))

def runSelectedCode(self):
cmd = self.selectedText()

0 comments on commit f21562c

Please sign in to comment.
You can’t perform that action at this time.