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

index 635f93a934e3024d06857b307358806c47e71923..dcce8acda17fa109a3797fb6641e75f79bf36cd2 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>
 
        * dired-x.el (dired-guess-shell-alist-user): Doc fix.
index 19e9373a5ec0899b7751db8d1d07b79ca1030699..341d1c46722f3ba03fed7c3a04731def91fe915f 100644 (file)
@@ -1355,7 +1355,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=" data-directory