#include <qapplication.h>
#include <qdict.h>
-#include "utilities.h"
#include <iostream>
#include <string>
#include <vector>
#include <SUIT_Session.h>
#include "SALOMEDS_Tool.hxx"
+#include "utilities.h"
+#include "OpUtil.hxx"
#include "SALOMEDSClient_ClientFactory.hxx"
#include "SALOMEDSClient_IParameters.hxx"
std::string SalomeApp_Study::GetTmpDir ( const char* theURL, const bool isMultiFile )
{
std::string anURLDir = SALOMEDS_Tool::GetDirFromPath(theURL);
- std::string aTmpDir = isMultiFile ? anURLDir : SALOMEDS_Tool::GetTmpDir();
+ std::string aTmpDir = isMultiFile ? anURLDir : OpUtil_Dir::GetTmpDirByEnv("SALOME_TMP_DIR");
return aTmpDir;
}
#include "SalomeApp_Engine_i.hxx"
#include "SALOMEDS_Tool.hxx"
+#include "OpUtil.hxx"
#include "utilities.h"
const int studyId = theComponent->GetStudy()->StudyId();
// Create a temporary directory for the component's data files
- std::string aTmpDir = isMultiFile ? theURL : SALOMEDS_Tool::GetTmpDir();
+ std::string aTmpDir = isMultiFile ? theURL : OpUtil_Dir::GetTmpDirByEnv("SALOME_TMP_DIR");
// Convert the byte stream theStream to a files and place them in the tmp directory.
// The files and temporary directory must be deleted by the component loading procedure.