MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / isPythonPackageInstalled

Function isPythonPackageInstalled

openclaw-plugin/src/index.js:52–59  ·  view source on GitHub ↗
(pythonPath)

Source from the content-addressed store, hash-verified

50}
51
52function isPythonPackageInstalled(pythonPath) {
53 try {
54 execSync(`${pythonPath} -c "import uncommon_route"`, { stdio: "pipe" });
55 return true;
56 } catch {
57 return false;
58 }
59}
60
61/**
62 * Ensure the Python `uncommon-route` package is installed.

Callers 2

ensurePythonDepsFunction · 0.85
bootstrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected