Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
def _Compile(js_files, externs):
    try:
        return RunCompiler(js_files, externs)
    except KeyboardInterrupt:
        return (False, 'KeyboardInterrupt')