Forráskód Böngészése

Merge pull request #162 from zalcit/fix_some_time_wrong_python_version

fix: some time uv venv wrong python version
Yeuoly 6 hónapja%!(EXTRA string=óta)
szülő
commit
085bba3f90

+ 2 - 1
.gitignore

@@ -12,4 +12,5 @@ media-cache
 subprocesses
 working
 cwd/
-bin/
+bin/
+.venv/

+ 1 - 1
internal/core/plugin_manager/local_runtime/environment_python.go

@@ -61,7 +61,7 @@ func (p *LocalPluginRuntime) InitPythonEnvironment() error {
 
 	uvPath := strings.TrimSpace(string(output))
 
-	cmd = exec.Command(uvPath, "venv", ".venv")
+	cmd = exec.Command(uvPath, "venv", ".venv", "--python", "3.12")
 	cmd.Dir = p.State.WorkingPath
 	b := bytes.NewBuffer(nil)
 	cmd.Stdout = b