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 7dcf9c7 commit aedb7f4Copy full SHA for aedb7f4
src/installer/stages/pioarduino-core.js
@@ -362,6 +362,18 @@ export default class pioarduinoCoreStage extends BaseStage {
362
}
363
364
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
+
377
const pythonExecutable = await findPythonExecutable();
378
if (pythonExecutable) {
379
return pythonExecutable;
0 commit comments