Tools: codes_info to print the full definitions path

This commit is contained in:
Shahram Najm 2020-07-07 16:04:43 +01:00
parent 7a618fa90a
commit 5edd7923cd
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ int main(int argc, char* argv[])
if ((path = getenv("ECCODES_DEFINITION_PATH")) != NULL) { if ((path = getenv("ECCODES_DEFINITION_PATH")) != NULL) {
printf("Definition files path from environment variable"); printf("Definition files path from environment variable");
printf(" ECCODES_DEFINITION_PATH=%s\n", path); printf(" ECCODES_DEFINITION_PATH=%s\n", path);
printf("Full definition files path=%s\n", context->grib_definition_files_path);
} }
else if ((path = getenv("GRIB_DEFINITION_PATH")) != NULL) { else if ((path = getenv("GRIB_DEFINITION_PATH")) != NULL) {
printf("Definition files path from environment variable"); printf("Definition files path from environment variable");
@ -94,6 +95,7 @@ int main(int argc, char* argv[])
printf( printf(
"(This is for backward compatibility. " "(This is for backward compatibility. "
"It is recommended you use ECCODES_DEFINITION_PATH instead!)\n"); "It is recommended you use ECCODES_DEFINITION_PATH instead!)\n");
printf("Full definition files path=%s\n", context->grib_definition_files_path);
} }
else { else {
printf("Default definition files path is used: %s\n", context->grib_definition_files_path); printf("Default definition files path is used: %s\n", context->grib_definition_files_path);