Expand description
Information about the environment in terms of locations of resources.
Functions§
- Return the name of the Git executable to invoke it. If it’s in the
PATH
, it will always be a short name. - Tries to obtain the home directory from
HOME
on all platforms, but falls back tohome::home_dir()
for more complex ways of obtaining a home directory, particularly useful on Windows. - Return the location at which installation specific git configuration file can be found, or
None
if the binary could not be executed or its results could not be parsed. - Return the location at which git installation specific configuration files are located, or
None
if the binary could not be executed or its results could not be parsed. - Returns the platform dependent system prefix or
None
if it cannot be found (right now only on windows). - Returns the contents of an environment variable of
name
with some special handling for certain environment variables (likeHOME
) for platform compatibility. - Returns the fully qualified path in the xdg-home directory (or equivalent in the home dir) to
file
, accessingenv_var(<name>)
to learn where these bases are.