Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 7a21b5b

Browse files
committed
add hardware tool path
1 parent 8fc91d6 commit 7a21b5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/arduino/arduino.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@ Please make sure the folder is not occupied by other procedures .`);
577577
}
578578
const toolsPath = boardDescriptor.platform.rootBoardPath;
579579
result.push(path.normalize(path.join(toolsPath, "**")));
580+
const hardwareToolPath = path.join(toolsPath, "..", "..", "tools");
581+
if (fs.existsSync(hardwareToolPath)){
582+
result.push(path.normalize(path.join(hardwareToolPath, "**")));
583+
}
580584
// if (util.directoryExistsSync(path.join(toolsPath, "cores"))) {
581585
// const coreLibs = fs.readdirSync(path.join(toolsPath, "cores"));
582586
// if (coreLibs && coreLibs.length > 0) {

0 commit comments

Comments
 (0)