#NEWLINE# def run( parser = None , options = None , args = None ) : #NEWLINE# #INDENT# ' Convert JSON to HTML and launch browser.\n    ' #NEWLINE# if ( not os . path . exists ( options . json_file ) ) : #NEWLINE# #INDENT# sys . exit ( ( 'ERROR: Case records JSON file %s was not found!' % options . json_file ) ) #NEWLINE# #UNINDENT# data = CaseDataset ( options . json_file , 'json' ) . data #NEWLINE# html_file = ( options . json_file + '.html' ) #NEWLINE# caseset_query_to_html ( data , filename = html_file ) #NEWLINE# browser = webbrowser . get ( ) #NEWLINE# browser . open ( html_file , 1 , True )