Skip to main content

Ensure python, pip and with pip installed binarys (scripts for win) are in your PATH variable.

Project description

ensurepath

Does exactly one thing:

  • ensure that python, pip and with pip installed binarys are in your path.

use

$ pip install ensurepath
...
$ python -m ensurepath
...

why

The need occured for me when we started using pipx in a python class just to use pipx ensurepath. That is because the micrsoft store (msstore) install of python does add python and pip to the path, but not the scripts folder where with pip installed shell commands are located. I tried to also make this script add pip and python to the path if they are not in yet, but have not tested this further.

issues

If you encouter any error feel free to create an issue and I will try to help, when I have the time. But this is not a python install support service ;-)

This how not been tested thoroughly use at your own risk!

thanks

This script only uses the userpath module from ofek, thank you!

Project details


Download files

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

Source Distribution

ensurepath-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

ensurepath-0.1.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page