Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e54a60b + f441784 commit c6b7529Copy full SHA for c6b7529
IPython/core/completerlib.py
@@ -17,6 +17,7 @@
17
18
# Stdlib imports
19
import glob
20
+import imp
21
import inspect
22
import os
23
import re
@@ -90,7 +91,8 @@ def is_importable_file(path):
90
91
92
# Now find actual path matches for packages or modules
93
folder_list = [p for p in folder_list
- if isfile(pjoin(path, p,'__init__.py'))
94
+ if any(isfile(pjoin(path, p, '__init__' + suffix[0])) for
95
+ suffix in imp.get_suffixes())
96
or is_importable_file(p) ]
97
98
return [basename(p).split('.')[0] for p in folder_list]
0 commit comments