void SMESH_ParallelMesh::cleanup()
{
DeletePoolThreads();
- std::cout << "Keeping tmp folder" << keepingTmpFolfer() << std::endl;
if(!keepingTmpFolfer())
{
MESSAGE("Set SMESH_KEEP_TMP to > 0 to keep temporary folders")
bool SMESH_ParallelMesh::keepingTmpFolfer()
{
const char* envVar = std::getenv("SMESH_KEEP_TMP");
- std::cout << "smesh_keep_tmp: " << envVar << std::endl;
if (envVar && (envVar[0] != '\0'))
{
del_tmp_folder = True
try:
val = int(environ.get("SMESH_KEEP_TMP", "0"))
- del_tmp_folder = val > 0
+ del_tmp_folder = val < 0
except Exception as e:
del_tmp_folder = True
- launcher.clearJobWorkingDir(job_id)
+ if del_tmp_folder:
+ launcher.clearJobWorkingDir(job_id)
def def_arg():
""" Define and parse arguments for the script """