aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 5bb15c60956..f9b645cc3df 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2720,8 +2720,7 @@ dedicated to the current buffer or its project (if one is found)."
2720(defmacro python-shell--add-to-path-with-priority (pathvar paths) 2720(defmacro python-shell--add-to-path-with-priority (pathvar paths)
2721 "Modify PATHVAR and ensure PATHS are added only once at beginning." 2721 "Modify PATHVAR and ensure PATHS are added only once at beginning."
2722 `(dolist (path (reverse ,paths)) 2722 `(dolist (path (reverse ,paths))
2723 (cl-delete path ,pathvar :test #'string=) 2723 (setq ,pathvar (cons path (cl-delete path ,pathvar :test #'string=)))))
2724 (cl-pushnew path ,pathvar :test #'string=)))
2725 2724
2726(defun python-shell-calculate-pythonpath () 2725(defun python-shell-calculate-pythonpath ()
2727 "Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'." 2726 "Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'."