Skip to content

Commit f907c87

Browse files
author
carlio
committed
[refs #292] Fixing autodetection - now actually includes found dependencies in list of used libraries
1 parent feeae2c commit f907c87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prospector/config/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ def _find_used_libraries(self, config, profile):
163163

164164
# Bring in adaptors that we automatically detect are needed
165165
if config.autodetect and profile.autodetect is True:
166-
map(libraries.append, autodetect_libraries(self.workdir))
166+
for found_dep in autodetect_libraries(self.workdir):
167+
libraries.append(found_dep)
167168

168169
# Bring in adaptors for the specified libraries
169170
for name in set(config.uses + profile.uses):

0 commit comments

Comments
 (0)