Show More
@@ -17,6 +17,7 b' from __future__ import print_function' | |||
|
17 | 17 | |
|
18 | 18 | # Stdlib imports |
|
19 | 19 | import glob |
|
20 | import imp | |
|
20 | 21 | import inspect |
|
21 | 22 | import os |
|
22 | 23 | import re |
@@ -90,7 +91,8 b' def module_list(path):' | |||
|
90 | 91 | |
|
91 | 92 | # Now find actual path matches for packages or modules |
|
92 | 93 | folder_list = [p for p in folder_list |
|
93 |
if isfile(pjoin(path, p,'__init__ |
|
|
94 | if any(isfile(pjoin(path, p, '__init__' + suffix[0])) for | |
|
95 | suffix in imp.get_suffixes()) | |
|
94 | 96 | or is_importable_file(p) ] |
|
95 | 97 | |
|
96 | 98 | return [basename(p).split('.')[0] for p in folder_list] |
General Comments 0
You need to be logged in to leave comments.
Login now