From 3a77d96c98d72b1755573beee3976acc48a95f07 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 13 Aug 2011 13:11:48 +0100 Subject: [PATCH] use the temp enviroment variable for windows --- node/handler/ExportHandler.js | 2 +- node/handler/ImportHandler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/handler/ExportHandler.js b/node/handler/ExportHandler.js index 674950f4..fd6d26e4 100644 --- a/node/handler/ExportHandler.js +++ b/node/handler/ExportHandler.js @@ -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; } /** diff --git a/node/handler/ImportHandler.js b/node/handler/ImportHandler.js index c02c9f50..935e95fd 100644 --- a/node/handler/ImportHandler.js +++ b/node/handler/ImportHandler.js @@ -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; } /**