add variabale inputdir to store the last input file directory

This commit is contained in:
Holger Vogt 2018-07-08 13:00:31 +02:00
parent 5fa4f631fb
commit fac5754b79
1 changed files with 4 additions and 0 deletions

View File

@ -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 */