-// Copyright (C) 2014-2021 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
AttributeStringPtr aDumpDirAttr =
this->string(ExchangePlugin_Dump::DUMP_DIR_ID());
std::string aDumpDir;
- if (aDumpDirAttr.get() && !aDumpDirAttr->isInitialized())
+ if (aDumpDirAttr.get() && aDumpDirAttr->isInitialized())
+ aDumpDir = aDumpDirAttr->value();
+ else
aDumpDir = GeomAlgoAPI_Tools::File_Tools::path(theFileName);
aDumper->setDumpDir(aDumpDir);