Skip to content

Commit

Permalink
[pyqgis-console] fixes #9097 (thanks to Minoru Akagi)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Dec 2, 2013
1 parent dcfccbc commit f21562c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/console/console_editor.py
Expand Up @@ -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()
Expand Down

0 comments on commit f21562c

Please sign in to comment.