Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix completion when importing modules in the cwd.

  • Loading branch information...
commit 95a19d7bc276515c8abd01af5dab1e3b77699506 1 parent c849352
@takluyver authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  IPython/core/completerlib.py
View
3  IPython/core/completerlib.py
@@ -61,6 +61,9 @@ def module_list(path):
Return the list containing the names of the modules available in the given
folder.
"""
+ # sys.path has the cwd as an empty string, but isdir/listdir need it as '.'
+ if path == '':
+ path = '.'
if os.path.isdir(path):
folder_list = os.listdir(path)
Please sign in to comment.
Something went wrong with that request. Please try again.