From: Giles A. <ga...@bt...> - 2020-08-01 13:15:44
|
If the question is "where should NGspice create temporary files", I think the completely correct answer is different for Windows and Unix-like OS. Windows: use TEMP (or TMP) environment variable. If not defined, I would guess $HOME/temp is a good fallback. (C:\TEMP often exists, but is a bad idea for multi-user systems, as users will be unable to create it.) Unix-like: /tmp is the standard (for example, Linux File Hierarchy Standard). Ideally a function that guarantees a unique name, like mkstemps() should be used. However, the current $HOME/tmp (temp on Windows) seems OK. The users of ngspice must already be technically aware, and should know what to do if they see the error message when the directory does not exist.. LFHS considers using $HOME to be not polite. Giles On 31 Jul 2020, at 13:01, Holger Vogt wrote: > >> I needed to create $HOME/tmp, but I assume that is intended. > > I've been stumbling over this as well. Probably it is just history. > > Would there be a better place? Maybe simply the current working directory? > > Holger > > > _______________________________________________ > Ngspice-bugs mailing list > Ngs...@li... > https://lists.sourceforge.net/lists/listinfo/ngspice-bugs |