Message324640
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. |
|
| Date |
User |
Action |
Args |
| 2018-09-05 14:48:46 | vstinner | set | recipients:
+ vstinner, paul.moore, ncoghlan, serhiy.storchaka, dstufft, Marcus.Smith, miss-islington |
| 2018-09-05 14:48:46 | vstinner | set | messageid: <1536158926.47.0.56676864532.issue34530@psf.upfronthosting.co.za> |
| 2018-09-05 14:48:46 | vstinner | link | issue34530 messages |
| 2018-09-05 14:48:46 | vstinner | create | |
|