]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
VTI temporary dir changed
authorouv <ouv@opencascade.com>
Thu, 27 Apr 2006 13:48:28 +0000 (13:48 +0000)
committerouv <ouv@opencascade.com>
Thu, 27 Apr 2006 13:48:28 +0000 (13:48 +0000)
src/VVTK/VVTK_SegmentationCursorDlg.cxx

index 63487fed62b3c685aa0d4815e480d6734b45e1b3..525ef469ea83e42f82373336e4b0613204aad43f 100644 (file)
@@ -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)