local-mcp 1.44.3 → 1.44.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -95,14 +95,12 @@ async function main() {
|
|
|
95
95
|
env.DYLD_LIBRARY_PATH = frameworksPath + (env.DYLD_LIBRARY_PATH ? ':' + env.DYLD_LIBRARY_PATH : '')
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
//
|
|
99
|
-
|
|
98
|
+
// PYTHONPATH: módulos del runtime (sin zip — magic number varía entre builds)
|
|
99
|
+
// PYTHONNOUSERSITE: evita mezclar con site-packages del sistema
|
|
100
100
|
env.PYTHONNOUSERSITE = '1'
|
|
101
|
-
|
|
102
101
|
const sitePkgs = path.join(libPath, 'site-packages')
|
|
103
102
|
const libDynload = path.join(libPath, 'lib-dynload')
|
|
104
|
-
const
|
|
105
|
-
const pyPaths = [zipLib, libPath, sitePkgs, libDynload]
|
|
103
|
+
const pyPaths = [libPath, sitePkgs, libDynload]
|
|
106
104
|
.filter(p => require('fs').existsSync(p))
|
|
107
105
|
if (pyPaths.length > 0) {
|
|
108
106
|
env.PYTHONPATH = pyPaths.join(':') + (env.PYTHONPATH ? ':' + env.PYTHONPATH : '')
|
package/package.json
CHANGED