Skip to content

Commit

Permalink
Load platformio bin location from platformio state itself
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgelenas committed Feb 17, 2021
1 parent 9bd848b commit 19af37a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/api/src/library/Platformio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,13 @@ export default class Platformio {
this.logger.log('pio cmd', {
args,
});
const pyExec = await this.getCorePythonExe();
this.logger.log('py exec path', {
pyExec,
const state = await this.getPlatformioState();
this.logger.log('platformio state', {
state,
});
const baseArgs = ['-m', 'platformio'];
return new Commander().runCommand(
pyExec,
[...baseArgs, ...args],
state.platformio_exe,
[...args],
options,
onOutput
);
Expand Down

0 comments on commit 19af37a

Please sign in to comment.