From 84e8bb083d9077ef000f83fca5ef92984414e322 2013-07-15 17:59:55 From: Min RK Date: 2013-07-15 17:59:55 Subject: [PATCH] Merge pull request #3338 from takluyver/i3316 closes #3316 According to [documentation here](http://docs.activestate.com/activepython/2.4/pywin32/win32api__SearchPath_meth.html), SearchPath takes an optional third parameter for the extension, which is only added if the filename doesn't have an extension. --- diff --git a/IPython/utils/_process_win32.py b/IPython/utils/_process_win32.py index 8e11222..fe99a83 100644 --- a/IPython/utils/_process_win32.py +++ b/IPython/utils/_process_win32.py @@ -82,7 +82,7 @@ def _find_cmd(cmd): path = None for ext in extensions: try: - path = SearchPath(PATH, cmd + ext)[0] + path = SearchPath(PATH, cmd, ext)[0] except: pass if path is None: