Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiwi0fruit/shutilwhich-cwdpatch
Patch for shutil.which and shutilwhich that disables search in CWD on Windows
https://github.com/kiwi0fruit/shutilwhich-cwdpatch
Last synced: about 1 month ago
JSON representation
Patch for shutil.which and shutilwhich that disables search in CWD on Windows
- Host: GitHub
- URL: https://github.com/kiwi0fruit/shutilwhich-cwdpatch
- Owner: kiwi0fruit
- License: other
- Created: 2019-02-28T05:22:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T10:27:15.000Z (over 5 years ago)
- Last Synced: 2024-09-12T00:38:07.246Z (2 months ago)
- Language: Python
- Size: 36.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shutilwhich-cwdpatch
Patch for `shutil.which` and `shutilwhich` that doesn't prepend CWD in search on Windows.
# Install
```bash
conda install -c defaults -c conda-forge shutilwhich-cwdpatch
```or
```bash
pip install shutilwhich-cwdpatch
```# Usage:
Simply import `patch` submodule before importing `shutil.which` or `shutilwhich` to patch them:
```py
import shutilwhich_cwdpatch.patch
from shutil import which
```Or use `which` without patching:
```py
from shutilwhich_cwdpatch import which
```