]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: error in machine name (missing split HOSTNAME)
authorprascle <prascle>
Sun, 8 Feb 2004 22:11:00 +0000 (22:11 +0000)
committerprascle <prascle>
Sun, 8 Feb 2004 22:11:00 +0000 (22:11 +0000)
src/Container/SALOME_ComponentPy.py

index 004d6ededc699551b7832e1fe58bc96043c36041..a8ab23e5236f094fd0b08a63ce5b6535ce5a3562 100755 (executable)
@@ -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)