diff --git a/ChangeLog b/ChangeLog index 049b35191..093de3773 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2011-07-10 Holger Vogt - * main.c, ivars.c: environmental variable NGSPICE_INPUT_DIR + * main.c, ivars.c, /xspice/icm/analog/file_source/cfunc.mod: + environmental variable NGSPICE_INPUT_DIR for additional search directory for input file 2011-07-10 Robert Larice diff --git a/src/xspice/icm/analog/file_source/cfunc.mod b/src/xspice/icm/analog/file_source/cfunc.mod index 7a2e9f3d0..15c48f290 100644 --- a/src/xspice/icm/analog/file_source/cfunc.mod +++ b/src/xspice/icm/analog/file_source/cfunc.mod @@ -148,7 +148,7 @@ void cm_filesource(ARGS) /* structure holding parms, inputs, outputs, etc. state->atend = 0; if (!state->fp) { char *lbuffer, *p; - lbuffer = getenv("NGSPICE_INPUT"); + lbuffer = getenv("NGSPICE_INPUT_DIR"); if (lbuffer && *lbuffer) { p = (char*) malloc(strlen(lbuffer) + strlen(DIR_PATHSEP) + strlen(PARAM(file)) + 1); sprintf(p, "%s%s%s", lbuffer, DIR_PATHSEP, PARAM(file));