return the full path of 'python' executable if found.

python_exec()

Value

executable full path in a character vector of length 1.

See also

Examples

if(exec_available("python"))
  message(python_exec())
#> /opt/python/3.12.4/bin/python3