We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc119a8 commit 53f5327Copy full SHA for 53f5327
src/utils/download.mts
@@ -1363,7 +1363,9 @@ export async function downloadEmbedPython(
1363
await workspace.fs.createDirectory(Uri.file(dllDir));
1364
1365
// Write to *._pth to allow use of installed packages
1366
- const pthFile = `${targetDirectory}/python312._pth`;
+ const versionAppend =
1367
+ CURRENT_PYTHON_VERSION.split(".").slice(0, 2).join("");
1368
+ const pthFile = `${targetDirectory}/python${versionAppend}._pth`;
1369
let pthContents = (
1370
await workspace.fs.readFile(Uri.file(pthFile))
1371
).toString();
0 commit comments