use the temp enviroment variable for windows

This commit is contained in:
Peter 'Pita' Martischka 2011-08-13 13:11:48 +01:00
parent b49123230d
commit 936a9985e1
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 //tempDirectory changes if the operating system is windows
if(os.type().indexOf("Windows") > -1) 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 //tempDirectory changes if the operating system is windows
if(os.type().indexOf("Windows") > -1) if(os.type().indexOf("Windows") > -1)
{ {
tempDirectory = "c:\\Temp\\"; tempDirectory = process.env.TEMP;
} }
/** /**