]> git.eshelyaron.com Git - emacs.git/commitdiff
(run-python): Remove '' from sys.path.
authorRomain Francoise <romain@orebokech.com>
Sun, 24 Aug 2008 19:47:07 +0000 (19:47 +0000)
committerRomain Francoise <romain@orebokech.com>
Sun, 24 Aug 2008 19:47:07 +0000 (19:47 +0000)
lisp/ChangeLog
lisp/progmodes/python.el

index 909adf8fe09e41e18b1b73511ecc12aff391d999..4695b9d023d05221f4922f1cc69125e352044e3f 100644 (file)
@@ -1,3 +1,7 @@
+2008-08-24  Romain Francoise  <romain@orebokech.com>
+
+       * progmodes/python.el (run-python): Remove '' from sys.path.
+
 2008-08-23  Glenn Morris  <rgm@gnu.org>
 
        * progmodes/fortran.el (fortran-tab-mode-string)
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="