MCPcopy Create free account
hub / github.com/appium/appium / requirePython

Function requirePython

packages/docutils/lib/fs.ts:211–217  ·  view source on GitHub ↗
(pythonPath?: string)

Source from the content-addressed store, hash-verified

209 * Check if a path to Python exists, otherwise raise DocutilsError
210 */
211export async function requirePython(pythonPath?: string): Promise<string> {
212 const foundPythonPath = pythonPath ?? (await findPython());
213 if (!foundPythonPath) {
214 throw new DocutilsError(MESSAGE_PYTHON_MISSING);
215 }
216 return foundPythonPath;
217}
218
219/**
220 * Reads an `mkdocs.yml` file, merges inherited configs, and returns the result. The result is cached.

Callers 3

initPythonFunction · 0.85
deployFunction · 0.85
buildSiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected