]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PyHello execution
authorabd <abd@opencascade.com>
Tue, 23 May 2006 10:38:15 +0000 (10:38 +0000)
committerabd <abd@opencascade.com>
Tue, 23 May 2006 10:38:15 +0000 (10:38 +0000)
bin/runSalome.py
src/Utils/Utils_Identity.py

index a93e92db57bafe089b856e925d750524eea087ff..31bb8208cd3ad9da8fdc44a291dd5e51ed2139e2 100755 (executable)
@@ -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']
 
 # ---
 
index abe7804157d248b18873cff710aa4e3d7f44b785..8c22e78c45a1c4c131082009b17bf86f15229144 100644 (file)
@@ -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