Back to index

salome-kernel  6.5.0
Public Member Functions | Private Attributes
Utils_Identity.Identity Class Reference

List of all members.

Public Member Functions

def __init__

Private Attributes

 _name
 _pid
 _machine
 _adip
 _uid
 _pwname
 _tc_start
 _cstart
 _cdir

Detailed Description

Definition at line 54 of file Utils_Identity.py.


Constructor & Destructor Documentation

def Utils_Identity.Identity.__init__ (   self,
  name 
)

Definition at line 55 of file Utils_Identity.py.

00055 
00056     def __init__(self,name):
00057         self._name = name
00058         self._pid =  os.getpid()
00059         self._machine = socket.gethostname()
00060         self._adip =  socket.gethostbyname(self._machine) # IP adress        
00061         if sys.platform == "win32":
00062           self._uid  = os.getpid() 
00063           self._pwname = os.environ["USERNAME"]
00064         else:
00065           self._uid = os.getuid()
00066           list = pwd.getpwuid(self._uid)
00067           self._pwname  = list[0] # user name
00068 
00069         self._tc_start = time.time()
00070         self._cstart    = time.ctime(self._tc_start)
00071         self._cdir = os.getcwd()


Member Data Documentation

Definition at line 59 of file Utils_Identity.py.

Definition at line 70 of file Utils_Identity.py.

Definition at line 69 of file Utils_Identity.py.

Definition at line 58 of file Utils_Identity.py.

Definition at line 56 of file Utils_Identity.py.

Definition at line 57 of file Utils_Identity.py.

Definition at line 62 of file Utils_Identity.py.

Definition at line 68 of file Utils_Identity.py.

Definition at line 61 of file Utils_Identity.py.


The documentation for this class was generated from the following file: