We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcfccbc commit f21562cCopy full SHA for f21562c
python/console/console_editor.py
@@ -581,7 +581,8 @@ def runScriptCode(self):
581
tmpFile = self.createTempFile()
582
filename = tmpFile
583
584
- self.parent.pc.shell.runCommand(u"execfile(r'{0}')".format(filename))
+ self.parent.pc.shell.runCommand(u"execfile(u'{0}'.encode('{1}'))"
585
+ .format(filename.replace("\\", "/"), sys.getfilesystemencoding()))
586
587
def runSelectedCode(self):
588
cmd = self.selectedText()
0 commit comments