Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

shutil.which for those not using Python 3.3 yet.

Project Description

A copy & paste backport of Python 3.3’s shutil.which function.

Usage

First, install the package: pip install shutilwhich

Importing the package:

import shutilwhich

will monkey-patch the shutil package, so from that point on you can simply import the which function:

from shutil import which

To keep things a little more concise, you can also import which directly from shutilwhich:

from shutilwhich import which

This will still monkeypatch the shutil module. On Python 3.3 and above, the module never do anything but return the stdlib shutil.which function.

Release History

Release History

This version
History Node

1.1.0

History Node

1.0.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
shutilwhich-1.1.0.tar.gz (2.3 kB) Copy SHA256 Checksum SHA256 Source Apr 25, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting