# os.confstr() or CS_PATH is not available
path = os.defpath
# bpo-35755: Don't use os.defpath if the PATH environment variable is
- # set to an empty string to mimick Unix which command behavior
+ # set to an empty string
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
if not path:
# os.confstr() or CS_PATH is not available
path = os.defpath
# bpo-35755: Don't use os.defpath if the PATH environment variable is
- # set to an empty string to mimick Unix which command behavior
+ # set to an empty string
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
if not path:
``os.confstr("CS_PATH")`` if available instead of :data:`os.defpath`, if the
``PATH`` environment variable is not set. Moreover, don't use
``os.confstr("CS_PATH")`` nor :data:`os.defpath` if the ``PATH`` environment
-variable is set to an empty string to mimick Unix ``which`` command
-behavior.
+variable is set to an empty string.