From: vsr Date: Wed, 24 Apr 2013 14:41:23 +0000 (+0000) Subject: Minor fix for notebokk access X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09fe106bf430ce207fd13f33179ed415270bc04c;p=modules%2Fyacs.git Minor fix for notebokk access --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 56cde9e3c..e912111f9 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -941,11 +941,10 @@ std::string SALOMEDSImpl_Study::_GetStudyVariablesScript() * Purpose : */ //============================================================================ -std::string SALOMEDSImpl_Study::_GetNoteBookAccess() +std::string SALOMEDSImpl_Study::_GetNoteBookAccess(const std::string& theStudyVar) { - std::string accessor = _GetNoteBookAccessor(); std::string notebook = "import salome_notebook\n"; - notebook += accessor+" = salome_notebook.NoteBook("; + notebook += _GetNoteBookAccessor() + " = salome_notebook.NoteBook(" + theStudyVar + ")" ; return notebook; } @@ -1275,11 +1274,11 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, // initialization function sfp << aBatchModeScript << ".salome_init()" << std::endl; if ( !isMultiFile ) { - sfp << "theStudy = " << aStudyVar <