150
158
if (FindPath ("NCBI", "NCBI", "DATA", fullpath, sizeof (fullpath) - 1)) {
151
159
FileBuildPath (fullpath, NULL, filename);
152
160
if ((aip = AsnIoOpen (fullpath, "r")) == NULL) {
153
ErrPost(CTX_NCBIOBJ, 1, "Couldn't open [%s]", fullpath);
162
ErrPost(CTX_NCBIOBJ, 1, "Couldn't open [%s]", fullpath);
157
ErrPost(CTX_NCBIOBJ, 1, "FindPath failed in PrintTemplateSetLoad - ncbi configuration file missing or incorrect");
168
ErrPost(CTX_NCBIOBJ, 1, "FindPath failed in PrintTemplateSetLoad - ncbi configuration file missing or incorrect");
161
173
ErrSetMessageLevel (lastLevel);
163
175
if ((aip = AsnIoOpen(fullpath, "r")) == NULL) {
164
ErrPost(CTX_NCBIOBJ, 1, "Couldn't open [%s]", fullpath);
177
ErrPost(CTX_NCBIOBJ, 1, "Couldn't open [%s]", fullpath);