From b938eefdf56ed501778a4dac0e9f0298934f9d2b 2014-06-20 23:18:44 From: Thomas Kluyver Date: 2014-06-20 23:18:44 Subject: [PATCH] Merge pull request #6024 from cxmcc/tab-completion-for-symlink-folders 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)