• Victor Stinner's avatar
    bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) · 228a3c99
    Victor Stinner yazdı
    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.
    228a3c99
Adı
Son kayıt (commit)
Son güncelleme
..
Setup.sample Loading commit data...
__init__.py Loading commit data...
includetest.rst Loading commit data...
support.py Loading commit data...
test_archive_util.py Loading commit data...
test_bdist.py Loading commit data...
test_bdist_dumb.py Loading commit data...
test_bdist_msi.py Loading commit data...
test_bdist_rpm.py Loading commit data...
test_bdist_wininst.py Loading commit data...
test_build.py Loading commit data...
test_build_clib.py Loading commit data...
test_build_ext.py Loading commit data...
test_build_py.py Loading commit data...
test_build_scripts.py Loading commit data...
test_check.py Loading commit data...
test_clean.py Loading commit data...
test_cmd.py Loading commit data...
test_config.py Loading commit data...
test_config_cmd.py Loading commit data...
test_core.py Loading commit data...
test_cygwinccompiler.py Loading commit data...
test_dep_util.py Loading commit data...
test_dir_util.py Loading commit data...
test_dist.py Loading commit data...
test_extension.py Loading commit data...
test_file_util.py Loading commit data...
test_filelist.py Loading commit data...
test_install.py Loading commit data...
test_install_data.py Loading commit data...
test_install_headers.py Loading commit data...
test_install_lib.py Loading commit data...
test_install_scripts.py Loading commit data...
test_log.py Loading commit data...
test_msvc9compiler.py Loading commit data...
test_msvccompiler.py Loading commit data...
test_register.py Loading commit data...
test_sdist.py Loading commit data...
test_spawn.py Loading commit data...
test_sysconfig.py Loading commit data...
test_text_file.py Loading commit data...
test_unixccompiler.py Loading commit data...
test_upload.py Loading commit data...
test_util.py Loading commit data...
test_version.py Loading commit data...
test_versionpredicate.py Loading commit data...