mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
shutil.which() and distutils.spawn.find_executable() now use
os.confstr("CS_PATH") if available instead of os.defpath, if the PATH
environment variable is not set.
Don't use os.confstr("CS_PATH") nor os.defpath if the PATH
environment variable is set to an empty string to mimick Unix 'which'
command behavior.
Changes:
* find_executable() now starts by checking for the executable in the
current working directly case. Add an explicit
"if not path: return None".
* Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
|
||
|---|---|---|
| .. | ||
| command | ||
| tests | ||
| __init__.py | ||
| _msvccompiler.py | ||
| archive_util.py | ||
| bcppcompiler.py | ||
| ccompiler.py | ||
| cmd.py | ||
| config.py | ||
| core.py | ||
| cygwinccompiler.py | ||
| debug.py | ||
| dep_util.py | ||
| dir_util.py | ||
| dist.py | ||
| errors.py | ||
| extension.py | ||
| fancy_getopt.py | ||
| file_util.py | ||
| filelist.py | ||
| log.py | ||
| msvc9compiler.py | ||
| msvccompiler.py | ||
| README | ||
| spawn.py | ||
| sysconfig.py | ||
| text_file.py | ||
| unixccompiler.py | ||
| util.py | ||
| version.py | ||
| versionpredicate.py | ||
This directory contains the Distutils package.
There's a full documentation available at:
http://docs.python.org/distutils/
The Distutils-SIG web page is also a good starting point:
http://www.python.org/sigs/distutils-sig/
$Id$