Variable: treemacs-python-executable

treemacs-python-executable is a customizable variable defined in treemacs-customization.el.

Value

nil

Documentation

The python executable used by treemacs.

An asynchronous python process is used in two optional features: treemacs-collapse-dirs and the extended variant of treemacs-git-mode(var)/treemacs-git-mode(fun).

There is generally only one reason to change this value: an extended treemacs-git-mode(var)/treemacs-git-mode(fun) requires python3 to work. If the default python executable is pointing to python2 this config variable can be used to direct treemacs to the python3 binary.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-python-executable (treemacs--find-python3)
  "The python executable used by treemacs.
An asynchronous python process is used in two optional features:
`treemacs-collapse-dirs' and the extended variant of `treemacs-git-mode'.

There is generally only one reason to change this value: an extended
`treemacs-git-mode' requires python3 to work.  If the default python executable
is pointing to python2 this config variable can be used to direct treemacs to
the python3 binary."
  :type 'string
  :group 'treemacs-git)