Browse Source

add variabale inputdir to store the last input file directory

pre-master-46
Holger Vogt 8 years ago
parent
commit
fac5754b79
  1. 4
      src/frontend/inp.c

4
src/frontend/inp.c

@ -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…
Cancel
Save