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']
# ---
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