Function: python-shell--add-to-path-with-priority

python-shell--add-to-path-with-priority is a macro defined in python.el.gz.

Signature

(python-shell--add-to-path-with-priority PATHVAR PATHS)

Documentation

Modify PATHVAR and ensure PATHS are added only once at beginning.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defmacro python-shell--add-to-path-with-priority (pathvar paths)
  "Modify PATHVAR and ensure PATHS are added only once at beginning."
  `(dolist (path (reverse ,paths))
     (cl-delete path ,pathvar :test #'string=)
     (cl-pushnew path ,pathvar :test #'string=)))