mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
Prevent exception in MgAdapt::MgAdapt() in case if SALOME_TMP_DIR specifies
unexciting directory
This commit is contained in:
parent
772ad1d5f4
commit
8c5da1b9d0
@ -322,7 +322,7 @@ MgAdaptHypothesisData* MgAdapt::getData() const
|
|||||||
}
|
}
|
||||||
void MgAdapt::setMedFileIn(std::string fileName)
|
void MgAdapt::setMedFileIn(std::string fileName)
|
||||||
{
|
{
|
||||||
if ( isFileExist(fileName) )
|
if ( isFileExist( fileName ))
|
||||||
{
|
{
|
||||||
medFileIn = fileName;
|
medFileIn = fileName;
|
||||||
|
|
||||||
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user