From: mzn Date: Thu, 28 Jul 2005 12:23:50 +0000 (+0000) Subject: Fix for ( Bug IPAL9592 3.0.0 REGRESSION: error is raised after import "batchmode_sal... X-Git-Tag: V3_0_1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a8fc688591f2165932ac131a6fe20f143aaf3760;p=modules%2Fkernel.git Fix for ( Bug IPAL9592 3.0.0 REGRESSION: error is raised after import "batchmode_salome.py" ). --- diff --git a/src/KERNEL_PY/batchmode_salome.py b/src/KERNEL_PY/batchmode_salome.py index 249dff3e0..abd099f1f 100755 --- a/src/KERNEL_PY/batchmode_salome.py +++ b/src/KERNEL_PY/batchmode_salome.py @@ -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)