'Set the information of current operating system platform.'

def set_platform(self):

    (system, hostname, path, encode, flag) = CommonUtil.check_platform()
    self.platform = system
    self.hostname = hostname
    self.hosts_path = path
    self.plat_flag = flag
    if (encode == 'win_ansi'):
        self.sys_eol = '\r\n'
    else:
        self.sys_eol = '\n'
