def userfullname():
 global _userfullname
 if (not _userfullname):
  uid = os.getuid()
  entry = pwd_from_uid(uid)
  if entry:
   _userfullname = (entry[4].split(',')[0] or entry[0])
  if (not _userfullname):
   _userfullname = ('user%d' % uid)
 return _userfullname

def userfullname ( ) : global _userfullname if ( not _userfullname ) : uid = os . getuid ( ) entry = pwd_from_uid ( uid ) if entry : _userfullname = ( entry [ 4 ] . split ( ',' ) [ 0 ] or entry [ 0 ] ) if ( not _userfullname ) : _userfullname = ( 'user%d' % uid ) return _userfullname
get the users full name .