From 09fe106bf430ce207fd13f33179ed415270bc04c Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 24 Apr 2013 14:41:23 +0000 Subject: [PATCH] Minor fix for notebokk access --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 9 ++++----- src/SALOMEDSImpl/SALOMEDSImpl_Study.hxx | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) 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 <