]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for ( Bug IPAL9592 3.0.0 REGRESSION: error is raised after import "batchmode_sal...
authormzn <mzn@opencascade.com>
Thu, 28 Jul 2005 12:23:50 +0000 (12:23 +0000)
committermzn <mzn@opencascade.com>
Thu, 28 Jul 2005 12:23:50 +0000 (12:23 +0000)
src/KERNEL_PY/batchmode_salome.py

index 249dff3e08f23ce1c55e1132d42a73a6772edc7c..abd099f1f3d40c8b5f5872efc991deea234ba374 100755 (executable)
@@ -229,13 +229,13 @@ if orb is None:
 lcc = LifeCycleCORBA(orb)
 
 step = 0
-while step < 100 and lcc._catalog is None:
+while step < 100 and lcc is None:
     lcc = LifeCycleCORBA(orb)
     step = step + 1
     time.sleep(4)
     
-if lcc._catalog is None:
-    print "Warning: LifeCycleCORBA object is incomplete !!!"
+if lcc is None:
+    print "Warning: LifeCycleCORBA object has not been initialized !!!"
     
 #create a naming service instance
 naming_service = SALOME_NamingServicePy_i(orb)