summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2008-08-24 19:47:07 +0000
committerRomain Francoise <romain@orebokech.com>2008-08-24 19:47:07 +0000
commit75adb00dcfed4ab6ee916ad1202c504e859514e5 (patch)
tree42e9ed0ac7c81bb0b63751bf359922490bb7133a /lisp/progmodes/python.el
parent8a445f762f0acc4aa6276a92bed5efbfaa78c3bc (diff)
downloademacs-75adb00dcfed4ab6ee916ad1202c504e859514e5.tar.gz
(run-python): Remove '' from sys.path.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9ca11acfce8..5fbd617be10 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -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="