From: prascle Date: Sun, 8 Feb 2004 22:11:00 +0000 (+0000) Subject: PR: error in machine name (missing split HOSTNAME) X-Git-Tag: BR_multhr_20040212~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c772e5f76393cd069685c01ef88aad2827c273c;p=modules%2Fkernel.git PR: error in machine name (missing split HOSTNAME) --- diff --git a/src/Container/SALOME_ComponentPy.py b/src/Container/SALOME_ComponentPy.py index 004d6eded..a8ab23e52 100755 --- a/src/Container/SALOME_ComponentPy.py +++ b/src/Container/SALOME_ComponentPy.py @@ -31,6 +31,7 @@ import os import sys import time +import string from omniORB import CORBA, PortableServer import Engines, Engines__POA import Registry @@ -72,7 +73,8 @@ class SALOME_ComponentPy_i (Engines__POA.Component): self._Executed = 0 naming_service = SALOME_NamingServicePy_i(self._orb) - Component_path = "/Containers/" + os.getenv( "HOSTNAME" ) + "/" + self._containerName + "/" + self._interfaceName + myMachine=string.split(os.getenv( "HOSTNAME" ),'.') + Component_path = "/Containers/" + myMachine[0] + "/" + self._containerName + "/" + self._interfaceName MESSAGE( 'SALOME_ComponentPy_i Register' + str( Component_path ) ) naming_service.Register(self._this(), Component_path)