Treat input files names passed a start-up the same as those entered
as commands or called as scripts: search for them using $sourcepath.
This commit is contained in:
parent
07ce9c788e
commit
597268cc26
12
src/main.c
12
src/main.c
|
|
@ -1406,10 +1406,16 @@ int main(int argc, char **argv)
|
|||
tp = fopen(p, "r");
|
||||
tfree(p);
|
||||
}
|
||||
|
||||
if (!tp) {
|
||||
perror(arg);
|
||||
err = 1;
|
||||
break;
|
||||
/* Try and find it in a directory in $sourcepath. */
|
||||
|
||||
tp = inp_pathopen(arg, "r");
|
||||
if (!tp) {
|
||||
perror(arg);
|
||||
err = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue