[issue12420] distutils crashes if PATH is not defined

Henry Precheur report at bugs.python.org
Mon Jun 27 14:33:17 CEST 2011


New submission from Henry Precheur <henry at precheur.org>:

The function find_executable crashes if PATH is not defined.

I admit that it's an extreme case, but it's probably better to on the safe side of things.

What about using the current directory only if PATH is not defined? This seems to be a reasonable workaround.

----------
assignee: tarek
components: Distutils, Distutils2
files: fix_empty_path.diff
keywords: patch
messages: 139261
nosy: alexis, eric.araujo, henry.precheur, tarek
priority: normal
severity: normal
status: open
title: distutils crashes if PATH is not defined
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file22492/fix_empty_path.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12420>
_______________________________________


More information about the Python-bugs-list mailing list