#NEWLINE# def validate_dartium_path( self , value ) : #NEWLINE# #INDENT# bin_name = 'chrome.exe' #NEWLINE# if ( sublime . platform ( ) == 'osx' ) : #NEWLINE# #INDENT# bin_name = 'Contents/MacOS/Chromium' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( sublime . platform ( ) == 'linux' ) : #NEWLINE# #INDENT# bin_name = 'chrome' #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# full_path = os . path . join ( value , bin_name ) #NEWLINE# full_path = os . path . expandvars ( os . path . expanduser ( full_path ) ) #NEWLINE# if ( not os . path . exists ( full_path ) ) : #NEWLINE# #INDENT# raise IOError ( ) #NEWLINE# #UNINDENT# return full_path #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# msg = ( 'could not find Dartium in configured folder "%s": "%s"\n***\n' % ( self . name , value ) ) #NEWLINE# msg += str ( e ) #NEWLINE# _logger . error ( e ) #NEWLINE# raise ConfigError ( msg )