fopen_with_path enable path search (directory of recent inputs or

NGSPICE_INPUT_DIR)
This commit is contained in:
Holger Vogt 2023-07-30 08:37:55 +02:00
parent 5fe236290f
commit dc5291fa91
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ static double *read_file(const char *fn, int span, int offset,
double vals[9];
char buff[1024];
fp = fopen(fn, "r");
fp = fopen_with_path(fn, "r");
if (fp == NULL) {
cm_message_printf("Can not open file %s: %s", fn, strerror(errno));
return NULL;