]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0021256: EDF STUDY: Python dump in a single file (continued)
authoreap <eap@opencascade.com>
Tue, 3 May 2011 15:53:43 +0000 (15:53 +0000)
committereap <eap@opencascade.com>
Tue, 3 May 2011 15:53:43 +0000 (15:53 +0000)
+  if ( !isMultiFile )
+    sfp << "theStudy = salome.myStudy" <<std::endl << std::endl;

src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx

index 3ee0561140a2c6b5380d1cace2ede4193812560a..b271d05efa2c5051ec9cc2691b6170693511e84b 100644 (file)
@@ -1270,7 +1270,9 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath,
   sfp << "import " << aBatchModeScript << std::endl << std::endl;
 
   // initialization function
-  sfp << aBatchModeScript << ".salome_init()" << std::endl << std::endl;
+  sfp << aBatchModeScript << ".salome_init()" << std::endl;
+  if ( !isMultiFile )
+    sfp << "theStudy = salome.myStudy" <<std::endl << std::endl;
 
   // notebook initialization
   sfp << _GetNoteBookAccess();