(engine)
| 71 | |
| 72 | |
| 73 | def require_engine(engine): |
| 74 | engine_path = engine[0] |
| 75 | # if None is the "engine", it means we compiled to a native executable; |
| 76 | # there is no engine to check here |
| 77 | if engine_path is None: |
| 78 | return |
| 79 | if engine_path not in WORKING_ENGINES: |
| 80 | check_engine(engine) |
| 81 | if not WORKING_ENGINES[engine_path]: |
| 82 | logging.critical('The engine (%s) does not seem to work, check the paths in the config file' % engine) |
| 83 | sys.exit(1) |
| 84 | |
| 85 | |
| 86 | def run_js(filename, engine, args=None, |
no test coverage detected