add variabale inputdir to store the last input file directory
This commit is contained in:
parent
5fa4f631fb
commit
fac5754b79
|
|
@ -452,6 +452,10 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
|
|||
}
|
||||
}
|
||||
endTime = seconds();
|
||||
/* store input directory to a variable*/
|
||||
if (fp) {
|
||||
cp_vset("inputdir", CP_STRING, dir_name);
|
||||
}
|
||||
tfree(dir_name);
|
||||
|
||||
/* if nothing came back from inp_readall, just close fp and return to caller */
|
||||
|
|
|
|||
Loading…
Reference in New Issue