Added another way to set the tmp dir.
This commit is contained in:
parent
ff723379c7
commit
e324daa193
1 changed files with 10 additions and 5 deletions
|
|
@ -490,11 +490,16 @@ namespace Cantera {
|
|||
{
|
||||
// if TMP or TEMP is set, use it for the temporary
|
||||
// directory
|
||||
char* tmpdir = getenv("TMP");
|
||||
if (tmpdir == 0)
|
||||
tmpdir = getenv("TEMP");
|
||||
if (tmpdir != 0)
|
||||
tmp_dir = string(tmpdir);
|
||||
char* ctmpdir = getenv("CANTERA_TMPDIR");
|
||||
if (ctmpdir != 0) {
|
||||
tmp_dir = string(ctmpdir);
|
||||
} else {
|
||||
char* tmpdir = getenv("TMP");
|
||||
if (tmpdir == 0)
|
||||
tmpdir = getenv("TEMP");
|
||||
if (tmpdir != 0)
|
||||
tmp_dir = string(tmpdir);
|
||||
}
|
||||
|
||||
// if SLEEP is set, use it as the sleep time
|
||||
char* sleepstr = getenv("SLEEP");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue