Prevent exception in MgAdapt::MgAdapt() in case if SALOME_TMP_DIR specifies

unexciting directory
This commit is contained in:
eap 2021-08-11 17:35:58 +03:00
parent 772ad1d5f4
commit 8c5da1b9d0

View File

@ -322,7 +322,7 @@ MgAdaptHypothesisData* MgAdapt::getData() const
}
void MgAdapt::setMedFileIn(std::string fileName)
{
if ( isFileExist(fileName) )
if ( isFileExist( fileName ))
{
medFileIn = fileName;
@ -1094,7 +1094,9 @@ std::string MgAdapt::defaultWorkingDirectory()
{
aTmpDir = Tmp_dir;
}
else {
if ( ! isFileExist( aTmpDir ))
{
#ifdef WIN32
aTmpDir = "C:\\";
#else