From abcfd6fb5b24173fc1d87ae64143aacfe680a388 Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 23 May 2006 10:38:15 +0000 Subject: [PATCH] PyHello execution --- bin/runSalome.py | 8 ++++---- src/Utils/Utils_Identity.py | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index a93e92db5..31bb8208c 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -146,10 +146,10 @@ class ContainerPYServer(Server): def __init__(self,args): self.args=args self.initArgs() - if sys.platform == "win32": - self.CMD=[os.environ["PYTHONBIN"], os.environ["KERNEL_ROOT_DIR"] + '/win32/python/SALOME_ContainerPy.py','FactoryServerPy'] - else: - self.CMD=['SALOME_ContainerPy.py','FactoryServerPy'] +# if sys.platform == "win32": +# self.CMD=[os.environ["PYTHONBIN"], os.environ["KERNEL_ROOT_DIR"] + '/win32/python/SALOME_ContainerPy.py','FactoryServerPy'] +# else: + self.CMD=['SALOME_ContainerPy.py','FactoryServerPy'] # --- diff --git a/src/Utils/Utils_Identity.py b/src/Utils/Utils_Identity.py index abe780415..8c22e78c4 100644 --- a/src/Utils/Utils_Identity.py +++ b/src/Utils/Utils_Identity.py @@ -53,11 +53,12 @@ class Identity: self._name = name self._pid = os.getpid() self._machine = socket.gethostname() - self._adip = socket.gethostbyname(self._machine) # IP adress - self._uid = os.getuid() + self._adip = socket.gethostbyname(self._machine) # IP adress if sys.platform == "win32": - self._pwname = os.environ["USER"] + self._uid = os.getpid() + self._pwname = os.environ["USER"] else: + self._uid = os.getuid() list = pwd.getpwuid(self._uid) self._pwname = list[0] # user name -- 2.39.2