Skip to content

Commit

Permalink
Add current defaults paths for imtoolsrc
Browse files Browse the repository at this point in the history
* iraf$dev/imtoolrc
* /usr/lib/iraf/imtoolrc
* /usr/local/lib/iraf/imtoolrc
  • Loading branch information
olebole committed Nov 11, 2024
1 parent bd48577 commit c0b0179
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ximtool/raster.c
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,8 @@ get_fbconfig (XimDataPtr xim)
"/usr/local/lib/imtoolrc",
"/opt/local/lib/imtoolrc",
"/iraf/iraf/dev/imtoolrc",
"/local/lib/imtoolrc",
"/usr/lib/iraf/dev/imtoolrc",
"/usr/local/lib/iraf/dev/imtoolrc",
"/usr/iraf/dev/imtoolrc",
"/usr/local/iraf/dev/imtoolrc",
NULL};
Expand Down Expand Up @@ -2346,6 +2347,14 @@ get_fbconfig (XimDataPtr xim)
strncpy (xim->imtoolrc, fname, strlen(fname));
}
}
if (!fp && (fname = getenv ("iraf"))) {
sprintf (lbuf, "%sdev/imtoolrc", fname);
fp = fopen (fname = lbuf, "r");
if (fp) {
xim->imtoolrc = (char *) XtCalloc (SZ_LINE, sizeof(char));
strncpy (xim->imtoolrc, fname, strlen(fname));
}
}
if (!fp)
fp = fopen (fname = xim->imtoolrc, "r");
for (i=0; !fp && fb_paths[i]; i++) {
Expand Down

0 comments on commit c0b0179

Please sign in to comment.