Helper function to locate files. To get the full name of an executable, let's
say qmake, use
.. code-block:: python
abs_qmake_path=Locate('qmake', env_name='QMAKE_EXECUTABLE')
First the function checks if an environment variable with the name
QMAKE_EXECUTABLE is set. If so, the value of this variable is returned. Next,
each directory listed in search_paths is searched. If the executable could
still not be found and search_system_paths is set to True, the binary search
paths are searched.
If the file could not be located, a :exc:`~ost.settings.FileNotFound`
exception will be raised containing a detail description why Locate failed. The
error message is formatted in such a way that it can directly be presented to
the user.
Definition at line 41 of file settings.py.