From: ouv Date: Thu, 27 Apr 2006 13:48:28 +0000 (+0000) Subject: VTI temporary dir changed X-Git-Tag: Before_Merging_BR_DEBUG_3_2_0b1_01jun06~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=988ae34c87ecd57df2e4ca21d87f8e6ad5ed4592;p=modules%2Fvisu.git VTI temporary dir changed --- diff --git a/src/VVTK/VVTK_SegmentationCursorDlg.cxx b/src/VVTK/VVTK_SegmentationCursorDlg.cxx index 63487fed..525ef469 100644 --- a/src/VVTK/VVTK_SegmentationCursorDlg.cxx +++ b/src/VVTK/VVTK_SegmentationCursorDlg.cxx @@ -66,7 +66,12 @@ namespace VISU { QFileInfo aFileInfo(theImageFileName); QString aFormat = aFileInfo.extension(FALSE); - QString aVTIName = QString("/tmp/") + getenv("USER") + "-" + aFileInfo.baseName(TRUE) + ".vti"; +#ifdef WIN32 + QString aTmpDir = getenv( "TEMP" ); +#else + QString aTmpDir = QString( "/tmp/" ) + getenv("USER"); +#endif + QString aVTIName = aTmpDir + "-" + aFileInfo.baseName(TRUE) + ".vti"; QString aCommand = QString( "VISU_img2vti " ) + aFormat + " " + theImageFileName + " " + aVTIName; if(system( aCommand.latin1() ) == 0)