]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/python.el
(compilation-start): Resurrect the version for systems that don't support
[gnu-emacs] / lisp / progmodes / python.el
index 9ca11acfce8ad58b116687b41aaf81078c44aa8f..5fbd617be1010d1c48a5ae704b5363c9e7c3bd67 100644 (file)
@@ -1547,7 +1547,9 @@ buffer for a list of commands.)"
   ;; invoked.  Would support multiple processes better.
   (when (or new (not (comint-check-proc python-buffer)))
     (with-current-buffer
-       (let* ((cmdlist (append (python-args-to-list cmd) '("-i")))
+       (let* ((cmdlist
+               (append (python-args-to-list cmd)
+                       '("-i" "-c" "import sys; sys.path.remove('')")))
               (path (getenv "PYTHONPATH"))
               (process-environment     ; to import emacs.py
                (cons (concat "PYTHONPATH="