use the temp enviroment variable for windows

This commit is contained in:
Peter 'Pita' Martischka 2011-08-13 13:11:48 +01:00
parent 7ff8814fd7
commit 3a77d96c98
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ var tempDirectory = "/tmp";
//tempDirectory changes if the operating system is windows
if(os.type().indexOf("Windows") > -1)
{
tempDirectory = "c:\\Temp";
tempDirectory = process.env.TEMP;
}
/**

View File

@ -35,7 +35,7 @@ var tempDirectory = "/tmp/";
//tempDirectory changes if the operating system is windows
if(os.type().indexOf("Windows") > -1)
{
tempDirectory = "c:\\Temp\\";
tempDirectory = process.env.TEMP;
}
/**