()
| 81 | |
| 82 | |
| 83 | def api_mode(): |
| 84 | conf.API_OUTPUT = os.path.join(paths.DATA_PATH, conf.API_MODE) |
| 85 | if not os.path.exists(conf.API_OUTPUT): |
| 86 | os.mkdir(conf.API_OUTPUT) |
| 87 | |
| 88 | file = runApi() |
| 89 | for line in open(file): |
| 90 | sub = line.strip() |
| 91 | if sub: |
| 92 | th.queue.put(sub) |
no test coverage detected