From 87a4747fc0684e1dd74ce959148ce6f7e2bc94b0 2014-06-20 00:34:46 From: Xiuming Chen Date: 2014-06-20 00:34:46 Subject: [PATCH] Make tab completion for 'from' suggest symlinked folders/modules. --- diff --git a/IPython/core/completerlib.py b/IPython/core/completerlib.py index 08bff1c..9b0038d 100644 --- a/IPython/core/completerlib.py +++ b/IPython/core/completerlib.py @@ -84,7 +84,7 @@ def module_list(path): # in its subdirectories. For performance reasons, do not # recurse more than one level into subdirectories. files = [] - for root, dirs, nondirs in os.walk(path): + for root, dirs, nondirs in os.walk(path, followlinks=True): subdir = root[len(path)+1:] if subdir: files.extend(pjoin(subdir, f) for f in nondirs)