From: abd Date: Tue, 23 May 2006 10:38:15 +0000 (+0000) Subject: PyHello execution X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abcfd6fb5b24173fc1d87ae64143aacfe680a388;p=modules%2Fkernel.git PyHello execution --- 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