()
| 7 | import { ROOT, inspectResources, loadQuestions, selectSamples } from './index.js'; |
| 8 | |
| 9 | function pythonPath() { |
| 10 | const venv = join(ROOT, '.venv/bin/python'); |
| 11 | return existsSync(venv) ? venv : 'python3'; |
| 12 | } |
| 13 | |
| 14 | function official(request, { python = pythonPath(), timeout = 60_000 } = {}) { |
| 15 | return new Promise((resolveResult, reject) => { |