@@ -40,7 +40,6 @@ function defaultResourcePaths(defaultResourceRoot: string): RuntimeResourcePathM
4040 return {
4141 maibot : join ( defaultResourceRoot , "modules" , "MaiBot" ) ,
4242 napcat : join ( defaultResourceRoot , "modules" , "napcat" ) ,
43- pythonOverrides : join ( defaultResourceRoot , "python-overrides" ) ,
4443 } ;
4544}
4645
@@ -52,7 +51,6 @@ function readStoredResourcePaths(userDataRoot: string): Partial<RuntimeResourceP
5251 return {
5352 maibot : normalizePath ( raw . paths ?. maibot ) ,
5453 napcat : normalizePath ( raw . paths ?. napcat ) ,
55- pythonOverrides : normalizePath ( raw . paths ?. pythonOverrides ) ,
5654 } ;
5755 } catch {
5856 return { } ;
@@ -80,9 +78,6 @@ export function applyRuntimeResourcePaths(paths: RuntimePaths, updates: Partial<
8078 if ( updates . napcat ) {
8179 paths . napcatRoot = updates . napcat ;
8280 }
83- if ( updates . pythonOverrides ) {
84- paths . pythonOverridesRoot = updates . pythonOverrides ;
85- }
8681 paths . resourceRoot = paths . defaultResourceRoot ;
8782 paths . modulesRoot = join ( paths . defaultResourceRoot , "modules" ) ;
8883}
@@ -116,8 +111,7 @@ export function configureRuntimePaths(): RuntimePaths {
116111 opencodePluginInstructionsPath : app . isPackaged
117112 ? join ( payloadRoot , "runtime" , "opencode" , "plugin_code.md" )
118113 : join ( installRoot , "resources" , "opencode" , "plugin_code.md" ) ,
119- defaultPythonOverridesRoot : defaults . pythonOverrides ,
120- pythonOverridesRoot : defaults . pythonOverrides ,
114+ pythonEnvRoot : join ( defaultResourceRoot , "python-env" ) ,
121115 pluginBuilderRoot : join ( userDataRoot , "plugin-builder" , "plugins" ) ,
122116 logsRoot : join ( userDataRoot , "logs" ) ,
123117 } ;
0 commit comments