From: mzn Date: Thu, 17 Nov 2005 15:14:08 +0000 (+0000) Subject: SALOME_NamingServicePy_i::__init__ method modification. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=223e751558e79a45bf95d6224bf1afaa93d7dcf0;p=modules%2Fkernel.git SALOME_NamingServicePy_i::__init__ method modification. --- diff --git a/src/NamingService/SALOME_NamingServicePy.py b/src/NamingService/SALOME_NamingServicePy.py index ab7f2050d..8c36cf018 100644 --- a/src/NamingService/SALOME_NamingServicePy.py +++ b/src/NamingService/SALOME_NamingServicePy.py @@ -50,7 +50,7 @@ class SALOME_NamingServicePy_i: self._orb = orb # initialize root context and current context ok = 0 - steps = 40 + steps = 240 while steps > 0 and ok == 0: try: obj =self._orb.resolve_initial_references("NameService") @@ -68,7 +68,7 @@ class SALOME_NamingServicePy_i: MESSAGE(" Name service not found") time.sleep(0.25) steps = steps - 1 - if steps == 0: + if steps == 0 and self._root_context is None: MESSAGE ( "Name Service Reference is invalid" ) sys.exit(1) #-------------------------------------------------------------------------