Skip to content

Commit f2e7ff4

Browse files
committed
Merge from 2.2 (Fixed Issue 1438)
2 parents 041c2ef + 33ff0cc commit f2e7ff4

24 files changed

+5003
-4926
lines changed

spyderlib/interpreter.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from spyderlib.utils.dochelpers import isdefined
2424
from spyderlib.utils import encoding
2525
from spyderlib.py3compat import is_text_string, getcwd
26+
from spyderlib.utils.misc import remove_backslashes
2627

2728
# Force Python to search modules in the current directory first:
2829
sys.path.insert(0, '')
@@ -176,7 +177,7 @@ def run_command(self, cmd, new_prompt=True):
176177
# run command
177178
elif run_match:
178179
filename = guess_filename(run_match.groups()[0])
179-
cmd = 'runfile(r"%s", args=None)' % filename
180+
cmd = "runfile('%s', args=None)" % remove_backslashes(filename)
180181
# !cd system command
181182
elif cd_match:
182183
cmd = 'import os; os.chdir(r"%s")' % cd_match.groups()[0].strip()
5.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)