This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Marcus.Smith, dstufft, miss-islington, ncoghlan, paul.moore, serhiy.storchaka, vstinner
Date 2018-09-05.14:48:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536158926.47.0.56676864532.issue34530@psf.upfronthosting.co.za>
In-reply-to
Content
I chose to merge the simplest change:

-        path = os.environ['PATH']
+        path = os.environ.get('PATH', os.defpath)

And I added unit tests for find_executable(). The bug is now fixed.

I'm not longer interested to reuse shutil.which() in distutils.find_executable(), since find_executable() first checks if the executable is in the current directory.
History
Date User Action Args
2018-09-05 14:48:46vstinnersetrecipients: + vstinner, paul.moore, ncoghlan, serhiy.storchaka, dstufft, Marcus.Smith, miss-islington
2018-09-05 14:48:46vstinnersetmessageid: <1536158926.47.0.56676864532.issue34530@psf.upfronthosting.co.za>
2018-09-05 14:48:46vstinnerlinkissue34530 messages
2018-09-05 14:48:46vstinnercreate