parameters: (file_path)
docstring: get version from version conf file in package
docstring_summary: get version from version conf file in package
docstring_tokens: get version from version conf file in package
function: def get_version_info_from_file(file_path):
          """
          get version from version conf file in package
          """
          with open(file_path, 'r') as file:
              content = file.readlines()
          if len(content) < 3:
              raise Exception(Errors.CONTENT_OR_VALUE['gauss_0501'] % content)
          if re.match(r'^\d*\.\d*$', content[1]):
              version_str = ''.join(content[1].split('.'))
              return version_str.strip()
          else:
              raise Exception(Errors.CONTENT_OR_VALUE['gauss_0501'] % content[1])
function_tokens: def get_version_info_from_file ( file_path ) : with open ( file_path , 'r' ) as file : content = file . readlines ( ) if len ( content ) < 3 : raise Exception ( Errors . CONTENT_OR_VALUE [ 'gauss_0501' ] % content ) if re . match ( r'^\d*\.\d*$' , content [ 1 ] ) : version_str = '' . join ( content [ 1 ] . split ( '.' ) ) return version_str . strip ( ) else : raise Exception ( Errors . CONTENT_OR_VALUE [ 'gauss_0501' ] % content [ 1 ] )