From 4d9b8d713f6b7d4788df5c2ee0b5f4b9f3b2d20c Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 24 Apr 2013 13:54:21 +0000 Subject: [PATCH] Correction of dumped string to initialize of NoteBook by a new instance of the study. --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index d5a380a9f..56cde9e3c 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -945,7 +945,7 @@ std::string SALOMEDSImpl_Study::_GetNoteBookAccess() { std::string accessor = _GetNoteBookAccessor(); std::string notebook = "import salome_notebook\n"; - notebook += accessor+" = salome_notebook."+accessor + "\n"; + notebook += accessor+" = salome_notebook.NoteBook("; return notebook; } @@ -1271,13 +1271,15 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, sfp << "import sys" << std::endl; sfp << "import " << aBatchModeScript << std::endl << std::endl; + std::string aStudyVar = "salome.myStudy"; // initialization function sfp << aBatchModeScript << ".salome_init()" << std::endl; - if ( !isMultiFile ) - sfp << "theStudy = salome.myStudy" <