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 vstinner
Date 2018-08-28.12:47:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535460451.64.0.56676864532.issue34530@psf.upfronthosting.co.za>
In-reply-to
Content
Example:

$ env -i ./python -c 'import distutils.spawn; print(distutils.spawn.find_executable("true"))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/vstinner/prog/python/master/Lib/distutils/spawn.py", line 176, in find_executable
    path = os.environ['PATH']
  File "/home/vstinner/prog/python/master/Lib/os.py", line 672, in __getitem__
    raise KeyError(key) from None
KeyError: 'PATH'


Attached PR fixes the issue for the master branch.
History
Date User Action Args
2018-08-28 12:47:31vstinnersetrecipients: + vstinner
2018-08-28 12:47:31vstinnersetmessageid: <1535460451.64.0.56676864532.issue34530@psf.upfronthosting.co.za>
2018-08-28 12:47:31vstinnerlinkissue34530 messages
2018-08-28 12:47:31vstinnercreate