whichPython

lsst.sconsUtils.utils.whichPython()

Path of Python executable to use.

Returns:
pythonPath : str

Full path to the Python executable as determined from the PATH. Does not return the full path of the Python running SCons. Caches result and assumes the PATH does not change between calls. Runs the “python” command and asks where it is rather than scanning the PATH.