@ -29,7 +29,7 @@
/**
/**
* Normalizes a file path to an environmental variable , if possible .
* Normalizes a file path to an environmental variable , if possible .
*
*
* @ param aFilePath is the full file path ( path and file name ) to be normalized .
* @ param aFilePath is the full file path ( path and file name ) to be normalized .
* @ param aEnvVars is an optional map of environmental variables to try substition with .
* @ param aEnvVars is an optional map of environmental variables to try substition with .
* @ param aProject is an optional project , to normalize the file path to the project path .
* @ param aProject is an optional project , to normalize the file path to the project path .
@ -39,4 +39,16 @@
wxString NormalizePath ( const wxFileName & aFilePath , const ENV_VAR_MAP * aEnvVars ,
wxString NormalizePath ( const wxFileName & aFilePath , const ENV_VAR_MAP * aEnvVars ,
const PROJECT * aProject ) ;
const PROJECT * aProject ) ;
/**
* Searches the default paths trying to find one with the requested file .
*
* @ param aFileName is the name of the searched file . It might be a relative path .
* @ param aEnvVars is an optional map of environmental variables that can contain paths .
* @ param aProject is an optional project , to check the project path .
* @ return Full path ( apth and file name ) if the file was found in one of the paths , otherwise
* an empty string .
*/
wxString ResolveFile ( const wxString & aFileName , const ENV_VAR_MAP * aEnvVars ,
const PROJECT * aProject ) ;
# endif /* ENV_PATHS_H */
# endif /* ENV_PATHS_H */