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

Commit 8137305

Browse files
authored
Support custom libraries with portable version of Arduino (#946)
* Support custom libraries in portable version * Change path location for custom package tool see #946
1 parent 19c276f commit 8137305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arduino/arduino.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ Please make sure the folder is not occupied by other procedures .`);
668668
// Arduino built-in libraries
669669
includePath.push(path.join(this._settings.arduinoPath, "libraries", "**"));
670670
// Arduino custom package tools
671-
includePath.push(path.join(os.homedir(), "Documents", "Arduino", "hardware", "tools", "**"));
671+
includePath.push(path.join(this._settings.sketchbookPath, "hardware", "tools", "**"));
672672
// Arduino custom libraries
673-
includePath.push(path.join(os.homedir(), "Documents", "Arduino", "libraries", "**"));
673+
includePath.push(path.join(this._settings.sketchbookPath, "libraries", "**"));
674674

675675
const forcedInclude = this.getDefaultForcedIncludeFiles();
676676

0 commit comments

Comments
 (0)