Function

NumCosmoMathcfg_get_data_directory

Declaration [src]

gchar*
ncm_cfg_get_data_directory (
  void
)

Description [src]

Gets the data directory path. It first checks the environment variable NCM_CFG_DATA_DIR_ENV, then the package data directory and finally the package source directory. If none of these directories exists, it raises an error.

Return value

Type: gchar*

Full path for the data directory.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.