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

@ -1094,7 +1094,9 @@ std::string MgAdapt::defaultWorkingDirectory()
{ {
aTmpDir = Tmp_dir; aTmpDir = Tmp_dir;
} }
else {
if ( ! isFileExist( aTmpDir ))
{
#ifdef WIN32 #ifdef WIN32
aTmpDir = "C:\\"; aTmpDir = "C:\\";
#else #else