Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,11 @@ def getlibs(self):

for f in files:
if f.endswith('.lib') or f.endswith('.bld'):
# If we are in a subdirectory that is importing mbed-os,
# skip the import of mbed-os: the app will have already
# imported mbed-os.
if (f == 'mbed-os.lib') and (root != cwd_root):
continue
repo = Repo.fromlib(os.path.join(root, f))
if repo:
yield repo
Expand Down