]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #484: add salome module import into HYDRO script for multi file dump.
authormzn <mzn@opencascade.com>
Wed, 5 Nov 2014 12:16:19 +0000 (12:16 +0000)
committermzn <mzn@opencascade.com>
Wed, 5 Nov 2014 12:16:19 +0000 (12:16 +0000)
src/HYDROData/HYDROData_Document.cxx

index 5f95e02b3a6736a697daf18e2dccf05db5bb6426..3568066a333787753c5577adcae0b68ca70ba34c 100644 (file)
@@ -267,6 +267,7 @@ QStringList HYDROData_Document::DumpToPython( MapOfTreatedObjects& theTreatedObj
 
   if ( theIsMultiFile )
   {
+    aResScript << QString( "import salome" );
     aResScript << QString( "" );
     aResScript << QString( "def RebuildData( theStudy ):" );
     aResScript << QString( "  %1 = HYDROData_Document.Document( theStudy._get_StudyId() );" ).arg( aDocName );