Skip to content

Commit f4b54a1

Browse files
committed
fix detection after penv install
1 parent 4212973 commit f4b54a1

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pioarduino-node-helpers",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "Collection of Node.JS helpers for PlatformIO fork pioarduino",
55
"main": "dist/index.js",
66
"engines": {

src/installer/stages/pioarduino-core.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,18 @@ export default class pioarduinoCoreStage extends BaseStage {
362362
}
363363

364364
do {
365+
// First try to find built-in Python if enabled
366+
if (this.params.useBuiltinPython) {
367+
try {
368+
const pythonPath = await pioarduinoCoreStage.findBuiltInPythonExe();
369+
await fs.access(pythonPath);
370+
console.info('Using built-in Python:', pythonPath);
371+
return pythonPath;
372+
} catch (err) {
373+
console.info('Built-in Python not found, searching system PATH');
374+
}
375+
}
376+
365377
const pythonExecutable = await findPythonExecutable();
366378
if (pythonExecutable) {
367379
return pythonExecutable;

0 commit comments

Comments
 (0)