#NEWLINE# def get_cmakelists_txt( path ) : #NEWLINE# #INDENT# '\n    Fetches the CMakeLists.txt from a given path\n\n    :param path: path to the folder containing the CMakeLists.txt\n    :type path: str\n    :returns: contents of CMakeLists.txt file in given path\n    :rtype: str\n    :raises OSError: if there is no CMakeLists.txt in given path\n    ' #NEWLINE# cmakelists_txt_path = os . path . join ( path , 'CMakeLists.txt' ) #NEWLINE# with open ( cmakelists_txt_path , 'r' ) as f : #NEWLINE# #INDENT# return f . read ( )