parameters: ()
docstring: Get installed information from record file.
          install time | install version | install path
docstring_summary: Get installed information from record file.
          install time | install version | install path
docstring_tokens: Get installed information from record file . install time | install version | install path
function: def get_install_info():
          """
          Get installed information from record file.
          install time | install version | install path
          """
          install_time, install_version, install_path = '', '', ''
          if not os.path.isfile(VERSION_RECORD_FILE_ANOMALY_DETECTION):
              raise Exception(
                  Errors.FILE_DIR_PATH['gauss_0102'] % VERSION_RECORD_FILE_ANOMALY_DETECTION)
          install_info = CommonTools.read_last_line_from_file(
              VERSION_RECORD_FILE_ANOMALY_DETECTION).strip()
          if install_info:
              install_time, install_version, install_path = install_info.split('|')
              # check path valid
              CommonTools.check_path_valid(install_path)
          if not os.path.isdir(install_path):
              raise Exception(Errors.FILE_DIR_PATH['gauss_0103'] % install_path)
          else:
              g.logger.info('Successfully got install path[%s].' % install_path)
              return install_time, install_version, install_path
function_tokens: def get_install_info ( ) : install_time , install_version , install_path = '' , '' , '' if not os . path . isfile ( VERSION_RECORD_FILE_ANOMALY_DETECTION ) : raise Exception ( Errors . FILE_DIR_PATH [ 'gauss_0102' ] % VERSION_RECORD_FILE_ANOMALY_DETECTION ) install_info = CommonTools . read_last_line_from_file ( VERSION_RECORD_FILE_ANOMALY_DETECTION ) . strip ( ) if install_info : install_time , install_version , install_path = install_info . split ( '|' ) # check path valid CommonTools . check_path_valid ( install_path ) if not os . path . isdir ( install_path ) : raise Exception ( Errors . FILE_DIR_PATH [ 'gauss_0103' ] % install_path ) else : g . logger . info ( 'Successfully got install path[%s].' % install_path ) return install_time , install_version , install_path