MCPcopy Create free account
hub / github.com/vercel/vercel / loadPythonConfigs

Function loadPythonConfigs

packages/python-analysis/src/manifest/package.ts:688–699  ·  view source on GitHub ↗
(
  root: AbsPath,
  prefix: RelPath
)

Source from the content-addressed store, hash-verified

686}
687
688async function loadPythonConfigs(
689 root: AbsPath,
690 prefix: RelPath
691): Promise<PythonConfigs> {
692 const configs: PythonConfigs = {};
693 const pythonRequest = await maybeLoadPythonRequest(root, prefix);
694 if (pythonRequest != null) {
695 configs[PythonConfigKind.PythonVersion] = pythonRequest;
696 }
697
698 return configs;
699}
700
701/*
702 * Read and parse a .python-version file if it exists in the given subdirectory.

Callers 1

discoverPythonPackageFunction · 0.85

Calls 1

maybeLoadPythonRequestFunction · 0.85

Tested by

no test coverage detected