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

src/VISU_I/VISU_DumpPython.cc

index 7254fe5663dbbeeea2ade94839bfd714ef027bc8..b5732083646a7a791fe2340700cbd529e205c3cc 100644 (file)
@@ -2326,8 +2326,6 @@ namespace VISU
     aStr<<aPrefix<<"import VISU"<<endl;
     aStr<<aPrefix<<"import visu"<<endl;
     aStr<<endl;
-    if( !theIsMultiFile )
-      aStr<<"theStudy = salome.myStudy"<<endl;
     aStr<<aPrefix<<"aVisu = visu.Initialize(orb,naming_service,lcc,myStudyManager,theStudy,0)"<<endl;
     aStr<<aPrefix<<"aSComponent = visu.PublishComponent(theStudy)"<<endl;
     aStr<<aPrefix<<"aMed = lcc.FindOrLoadComponent('FactoryServer','MED')"<<endl;