Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filename with extension in find_cmd in Windows. #3338

Merged
merged 1 commit into from Jul 15, 2013

Conversation

takluyver
Copy link
Member

closes #3316

According to documentation here, SearchPath takes an optional third parameter for the extension, which is only added if the filename doesn't have an extension.

Should be tested by someone on Windows.

@takluyver
Copy link
Member Author

The test should now be passing with the merge of #3342, but I think this change remains valid - python.exe is a valid command on Windows, and there's no obvious reason that find_cmd shouldn't find it. For comparison, shutil.which in Python 3.3 can locate a command with an extension.

@ivanov
Copy link
Member

ivanov commented Jun 28, 2013

@jstenar we would like you to take a look at this if you have a chance, or let us know if you don't. Thanks!

@minrk
Copy link
Member

minrk commented Jul 15, 2013

tested and works

minrk added a commit that referenced this pull request Jul 15, 2013
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.
@minrk minrk merged commit 84e8bb0 into ipython:master Jul 15, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
closes ipython#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

find_cmd test failure on Windows
3 participants