libsim  Versione6.3.0
character(len=512) function get_package_filepath ( character(len=*), intent(in)  filename,
integer, intent(in)  filetype 
)

Looks for a specific file for the libsim package.

It searches in different directories in the following order:

  • current working directory
  • directory specified by the environmental variabile LIBSIM_DATA for data files or LIBSIM_CONFIG for configuration files, if defined
  • directory /usr/local/share/libsim for data files or /usr/local/etc/libsim for configuration files
  • directory /usr/share/libsim for data files or /etc/libsim for configuration files. filename prefixed by "cwd:" or "share:" force search in current working directory or other package paths respectively default is everywhere for data files and package paths only for config files It returns the full path to the existing file or an empty string if not found.
Parametri
[in]filenamename of the file to be searched, it must be a relative path name
[in]filetypetype of file, the constants ::filetype_data or ::filetype_config have to be used

Definizione alla linea 359 del file file_utilities.F90.


Generated with Doxygen.