Patch for shutil.which and shutilwhich that disables search in CWD on Windows.
Project description
shutilwhich-cwdpatch
Patch for shutil.which
and shutilwhich
that doesn't prepend CWD in search on Windows.
Install
conda install -c defaults -c conda-forge shutilwhich-cwdpatch
or
pip install shutilwhich-cwdpatch
Usage:
Simply import shutilwhich-cwdpatch before importing shutil.which
or shutilwhich
:
import shutilwhich_cwdpatch
from shutil import which
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shutilwhich-cwdpatch-0.0.2.tar.gz
(26.2 kB
view hashes)
Close
Hashes for shutilwhich-cwdpatch-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500b820b5aaa5f5dda7c7b9151c4950dc0300e42664435207fb19d6e7cbb6217 |
|
MD5 | 88dc12055dc86d9948cebd0aff9eeeb2 |
|
BLAKE2b-256 | 0d1c729481dcd23e46069719e48f9ba610004e4adf702950c2c531cecff6aa7a |