server: allow plugins to specify portable python build tags (#1571)

This commit is contained in:
Brett Jia
2024-09-09 15:26:01 -04:00
committed by GitHub
parent 82afc6d53f
commit c94945c6d5
3 changed files with 6 additions and 6 deletions

View File

@@ -152,7 +152,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
const portableInstallPath = path.join(pyPath, pyVersion);
const py = new PortablePython(pluginPythonVersion, portableInstallPath, portablePythonOptions);
if (fs.existsSync(py.executablePath)) {
if (fs.existsSync(py.executablePath) && !py.isTagOutdated()) {
pythonPath = py.executablePath;
finishSetup();
}