[V3 Downloader] Fix #1594 (#1693)

This commit is contained in:
Will 2018-05-22 20:37:34 -04:00 committed by GitHub
parent 73a427f6aa
commit 4378e5295d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,8 @@ class Repo(RepoJSONMixin):
for file_finder, name, is_pkg in pkgutil.walk_packages(
path=[str(self.folder_path)], onerror=lambda name: None
):
curr_modules.append(Installable(location=self.folder_path / name))
if is_pkg:
curr_modules.append(Installable(location=self.folder_path / name))
self.available_modules = curr_modules
# noinspection PyTypeChecker