From 8425e3cea93b2e95e5a733a55b97fdc8bb7805a2 Mon Sep 17 00:00:00 2001 From: Ricklon Date: Wed, 19 Aug 2015 09:34:47 -0700 Subject: [PATCH] Issue #3635 Added the sketch folder to the path Issue #3635 Added the sketch folder to the include path. ``` includeFolders.add(prefs.getFile("build.core.path")); includeFolders.add(sketch.getFolder()); if (prefs.getFile("build.variant.path") != null) ``` --- arduino-core/src/processing/app/debug/Compiler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/arduino-core/src/processing/app/debug/Compiler.java b/arduino-core/src/processing/app/debug/Compiler.java index a3a42487fe8..ccbc329b500 100644 --- a/arduino-core/src/processing/app/debug/Compiler.java +++ b/arduino-core/src/processing/app/debug/Compiler.java @@ -395,6 +395,7 @@ public boolean compile(boolean _verbose, boolean _save) throws RunnerException, progressListener.progress(20); List includeFolders = new ArrayList(); includeFolders.add(prefs.getFile("build.core.path")); + includeFolders.add(sketch.getFolder()); if (prefs.getFile("build.variant.path") != null) includeFolders.add(prefs.getFile("build.variant.path")); for (UserLibrary lib : importedLibraries) {