From 4c772e5f76393cd069685c01ef88aad2827c273c Mon Sep 17 00:00:00 2001 From: prascle Date: Sun, 8 Feb 2004 22:11:00 +0000 Subject: [PATCH] PR: error in machine name (missing split HOSTNAME) --- src/Container/SALOME_ComponentPy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2