forked from platformio/platformio-core
Seek for library in user's lib directory
This commit is contained in:
@ -16,7 +16,8 @@ from os.path import isdir, join
|
|||||||
from SCons.Script import (DefaultEnvironment, Exit, SConscript,
|
from SCons.Script import (DefaultEnvironment, Exit, SConscript,
|
||||||
SConscriptChdir, Variables)
|
SConscriptChdir, Variables)
|
||||||
|
|
||||||
from platformio.util import get_pioenvs_dir, get_project_dir, get_source_dir
|
from platformio.util import (get_lib_dir, get_pioenvs_dir, get_project_dir,
|
||||||
|
get_source_dir)
|
||||||
|
|
||||||
# AllowSubstExceptions()
|
# AllowSubstExceptions()
|
||||||
|
|
||||||
@ -57,6 +58,7 @@ DefaultEnvironment(
|
|||||||
BUILD_DIR=join("$PIOENVS_DIR", "$PIOENV"),
|
BUILD_DIR=join("$PIOENVS_DIR", "$PIOENV"),
|
||||||
LIBSOURCE_DIRS=[
|
LIBSOURCE_DIRS=[
|
||||||
join("$PROJECT_DIR", "lib"),
|
join("$PROJECT_DIR", "lib"),
|
||||||
|
get_lib_dir(),
|
||||||
join("$PLATFORMFW_DIR", "libraries"),
|
join("$PLATFORMFW_DIR", "libraries"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user