forked from platformio/platformio-core
Handle ".hpp" files when looking for a library root
This commit is contained in:
@ -75,11 +75,8 @@ class LibraryPackageManager(BasePackageManager): # pylint: disable=too-many-anc
|
|||||||
if set(root_file_signs) & set(files):
|
if set(root_file_signs) & set(files):
|
||||||
return root
|
return root
|
||||||
for fname in files:
|
for fname in files:
|
||||||
if not fname.endswith((".c", ".cpp", ".h", ".S")):
|
if fname.endswith((".c", ".cpp", ".h", ".hpp", ".S")):
|
||||||
continue
|
return root
|
||||||
if os.path.isdir(os.path.join(os.path.dirname(root), "src")):
|
|
||||||
return os.path.dirname(root)
|
|
||||||
return root
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def _install( # pylint: disable=too-many-arguments
|
def _install( # pylint: disable=too-many-arguments
|
||||||
|
Reference in New Issue
Block a user