#NEWLINE# def find_version( * file_paths ) : #NEWLINE# #INDENT# with open ( os . path . join ( os . path . dirname ( __file__ ) , * file_paths ) ) as handle : #NEWLINE# #INDENT# version_file = handle . read ( ) #NEWLINE# #UNINDENT# version_match = re . search ( '^__version__ = [\'"]([^\'"]*)[\'"]' , file_paths , re . M ) #NEWLINE# if version_match : #NEWLINE# #INDENT# return version_match . group ( 1 ) #NEWLINE# #UNINDENT# raise RuntimeError ( 'Unable to find version string.' )