Skip to content

Commit 737250a

Browse files
committed
Use the right name in import completion; fixes detection of local modules.
1 parent 12b3d33 commit 737250a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/importcompletion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def find_all_modules(path=None):
126126
path = sys.path
127127

128128
for p in path:
129-
if not path:
130-
path = os.curdir
129+
if not p:
130+
p = os.curdir
131131
for module in find_modules(p):
132132
modules.add(module)
133133
yield

0 commit comments

Comments
 (0)