parameters: (file_path, section, option, under_path=None)
return_statement: return info
docstring: Get config info from file_path
docstring_summary: Get config info from file_path
docstring_tokens: Get config info from file_path
function: def read_info_from_config_file(file_path, section, option, under_path=None):
          """
          Get config info from file_path
          """
          parser = ConfigParser()
          parser.read(file_path)
          info = parser.get(section, option, fallback=None)
          if info is None:
              raise Exception(Errors.PARAMETER['gauss_0202'] % option)
          else:
              ConfigChecker.check(section, option, info)
              if under_path:
                  if not os.path.isabs(under_path):
                      raise Exception(Errors.PARAMETER['gauss_0104'] % under_path)
                  base_path = re.sub(r'\./', '', info)
                  return os.path.join(under_path, base_path)
          return info
function_tokens: def read_info_from_config_file ( file_path , section , option , under_path = None ) : parser = ConfigParser ( ) parser . read ( file_path ) info = parser . get ( section , option , fallback = None ) if info is None : raise Exception ( Errors . PARAMETER [ 'gauss_0202' ] % option ) else : ConfigChecker . check ( section , option , info ) if under_path : if not os . path . isabs ( under_path ) : raise Exception ( Errors . PARAMETER [ 'gauss_0104' ] % under_path ) base_path = re . sub ( r'\./' , '' , info ) return os . path . join ( under_path , base_path ) return info