diff options
author | Barry Warsaw <barry@python.org> | 1998-09-24 23:48:40 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-09-24 23:48:40 (GMT) |
commit | 02e5f69c9000af28e2af1d50ede17008bcfb671a (patch) | |
tree | 64820e9e5de118f0c57837fe98911668f360957d | |
parent | f7d77009c189c18aa76c24e8f43f23b71bee262b (diff) | |
download | cpython-02e5f69c9000af28e2af1d50ede17008bcfb671a.zip cpython-02e5f69c9000af28e2af1d50ede17008bcfb671a.tar.gz cpython-02e5f69c9000af28e2af1d50ede17008bcfb671a.tar.bz2 |
(py-execute-file, py-execute-import-or-reload): Use a Python `raw'
string in the argument to execfile() so a Windows temp directory
named, e.g. c:\\tmp doesn't get interpreted as a file name with an
embedded tab! (given by C. Waldman).
-rw-r--r-- | Misc/python-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 0a7982f..61ae465 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -1040,7 +1040,7 @@ comint believe the user typed this string so that (procbuf (process-buffer proc)) ; (comint-scroll-to-bottom-on-output t) (msg (format "## working on region in file %s...\n" filename)) - (cmd (format "execfile('%s')\n" filename))) + (cmd (format "execfile(r'%s')\n" filename))) (unwind-protect (save-excursion (set-buffer procbuf) @@ -1318,7 +1318,7 @@ This may be preferable to `\\[py-execute-buffer]' because: (file-name-nondirectory file)))) (format "if globals().has_key('%s'):\n reload(%s)\nelse:\n import %s\n" f f f)) - (format "execfile('%s')\n" file)) + (format "execfile(r'%s')\n" file)) async)) ;; else (py-execute-buffer async)))) |