Improve support of PIO Unified Debugger for Eclipse Oxygen

This commit is contained in:
Ivan Kravets
2018-01-06 01:04:43 +02:00
parent 16b307d1b3
commit 61872dd734
7 changed files with 129 additions and 8 deletions

View File

@@ -646,7 +646,9 @@ class ProjectAsLibBuilder(LibBuilderBase):
def get_include_dirs(self):
include_dirs = LibBuilderBase.get_include_dirs(self)
include_dirs.append(self.env.subst("$PROJECTINCLUDE_DIR"))
project_include_dir = self.env.subst("$PROJECTINCLUDE_DIR")
if isdir(project_include_dir):
include_dirs.append(project_include_dir)
return include_dirs
def get_search_files(self):