#NEWLINE# def _get_vevent_file( event_path ) : #NEWLINE# #INDENT# directory = ( '/' . join ( __file__ . split ( '/' ) [ : ( - 1 ) ] ) + '/ics/' ) #NEWLINE# ical = icalendar . Calendar . from_ical ( open ( os . path . join ( directory , ( event_path + '.ics' ) ) , 'rb' ) . read ( ) ) #NEWLINE# for component in ical . walk ( ) : #NEWLINE# #INDENT# if ( component . name == 'VEVENT' ) : #NEWLINE# #INDENT# return component