From 89020ed4b90d487d9f5181af09443c6d4d93fb8a 2008-01-16 15:33:51 From: vivainio Date: 2008-01-16 15:33:51 Subject: [PATCH] .pyw support for %run completer --- diff --git a/IPython/Extensions/ipy_completers.py b/IPython/Extensions/ipy_completers.py index d7a4d7f..f1b3f78 100644 --- a/IPython/Extensions/ipy_completers.py +++ b/IPython/Extensions/ipy_completers.py @@ -283,11 +283,13 @@ def runlistpy(self, event): # should complete on all files, since after the first one other files may # be arguments to the input script. #filter( - if filter(lambda f: f.endswith('.py') or f.endswith('.ipy'),comps): + if filter(lambda f: f.endswith('.py') or f.endswith('.ipy') or + f.endswith('.pyw'),comps): pys = [f.replace('\\','/') for f in lglob('*')] else: pys = [f.replace('\\','/') - for f in lglob(relpath+'*.py') + lglob(relpath+'*.ipy')] + for f in lglob(relpath+'*.py') + lglob(relpath+'*.ipy') + + lglob(relpath + '*.pyw')] return dirs + pys