Function: python-shell-calculate-pythonpath

python-shell-calculate-pythonpath is a byte-compiled function defined in python.el.gz.

Signature

(python-shell-calculate-pythonpath)

Documentation

Calculate the PYTHONPATH using python-shell-extra-pythonpaths.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-calculate-pythonpath ()
  "Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'."
  (let ((pythonpath
         (split-string
          (or (getenv "PYTHONPATH") "") path-separator 'omit)))
    (python-shell--add-to-path-with-priority
     pythonpath python-shell-extra-pythonpaths)
    (mapconcat #'identity pythonpath path-separator)))