##// END OF EJS Templates
Fix completion when importing modules in the cwd.
Thomas Kluyver -
Show More
@@ -61,6 +61,9 b' def module_list(path):'
61 61 Return the list containing the names of the modules available in the given
62 62 folder.
63 63 """
64 # sys.path has the cwd as an empty string, but isdir/listdir need it as '.'
65 if path == '':
66 path = '.'
64 67
65 68 if os.path.isdir(path):
66 69 folder_list = os.listdir(path)
General Comments 0
You need to be logged in to leave comments. Login now