def CheckBrailleIme(): print 'Compiling braille IME.' js_files = [ os.path.join(_SCRIPT_DIR, 'main.js'), os.path.join(_SCRIPT_DIR, 'braille_ime.js') ] externs = [os.path.join(_SCRIPT_DIR, 'externs.js')] return RunCompiler(js_files, externs)
def CheckBrailleIme(): print 'Compiling braille IME.' js_files = [ os.path.join(_SCRIPT_DIR, 'braille_ime.js'), os.path.join(_SCRIPT_DIR, 'main.js')] externs = [ os.path.join( _CHROME_SOURCE_DIR, 'third_party/closure_compiler/externs/chrome_extensions.js'), os.path.join(_SCRIPT_DIR, 'externs.js')] return RunCompiler(js_files, externs)
def _Compile(js_files, externs): try: return RunCompiler(js_files, externs) except KeyboardInterrupt: return (False, 'KeyboardInterrupt')