From: akk Date: Fri, 25 Aug 2006 10:37:25 +0000 (+0000) Subject: Integration of improvements,proposed in PAL12405 X-Git-Tag: V3_2_2pre~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=309210eeaf5bb70a266599e052b3619faed816e0;p=modules%2Fgeom.git Integration of improvements,proposed in PAL12405 --- diff --git a/src/GEOM_SWIG/batchmode_geompy.py b/src/GEOM_SWIG/batchmode_geompy.py index 1f490d3a5..52ccbdfff 100644 --- a/src/GEOM_SWIG/batchmode_geompy.py +++ b/src/GEOM_SWIG/batchmode_geompy.py @@ -31,10 +31,16 @@ import GEOM g=None step = 0 -while step < 50 and g == None: +sleeping_time = 0.01 +sleeping_time_max = 1.0 +while 1: g = lcc.FindOrLoadComponent("FactoryServer", "GEOM") + if g is not None: break step = step + 1 - time.sleep(4) + if step > 100: break + time.sleep(sleeping_time) + sleeping_time = max(sleeping_time_max, 2*sleeping_time) + pass geom = g._narrow( GEOM.GEOM_Gen ) myBuilder = None