Show More
@@ -12,6 +12,7 b' import IPython.ipapi' | |||
|
12 | 12 | import glob,os,shlex,sys |
|
13 | 13 | import inspect |
|
14 | 14 | from time import time |
|
15 | from zipimport import zipimporter | |
|
15 | 16 | ip = IPython.ipapi.get() |
|
16 | 17 | |
|
17 | 18 | try: |
@@ -86,6 +87,11 b' def moduleList(path):' | |||
|
86 | 87 | |
|
87 | 88 | if os.path.isdir(path): |
|
88 | 89 | folder_list = os.listdir(path) |
|
90 | elif path.endswith('.egg'): | |
|
91 | try: | |
|
92 | folder_list = [f for f in zipimporter(path)._files] | |
|
93 | except: | |
|
94 | folder_list = [] | |
|
89 | 95 | else: |
|
90 | 96 | folder_list = [] |
|
91 | 97 | #folder_list = glob.glob(os.path.join(path,'*')) |
General Comments 0
You need to be logged in to leave comments.
Login now