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.
1 parent 44f76f7 commit 513f37dCopy full SHA for 513f37d
1 file changed
bpython/importcompletion.py
@@ -49,6 +49,8 @@
49
50
# The cached list of all known modules
51
modules = set()
52
+#List of stored paths
53
+paths = set()
54
fully_loaded = False
55
56
@@ -192,11 +194,9 @@ def find_modules(path):
192
194
continue
193
195
else:
196
if is_package:
- pathGood = True
197
pathReal = os.path.realpath(pathname)
- if len(pathReal) < len(pathname) and pathReal in pathname:
198
- pathGood = False
199
- if pathGood:
+ if not pathReal in paths:
+ paths.add(pathReal)
200
for subname in find_modules(pathname):
201
if subname != "__init__":
202
yield "%s.%s" % (name, subname)
0 commit comments