Skip to main content

CLI tool for adding things to the PATH on Windows

Project description

addtopath

License: MIT PyPI

Introduction

addtopath is a CLI program which allows you to easily add a directory to your PATH using the terminal on Windows.

Requirements

You need to have Python 3.6 or higher installed. This will allow you to install addtopath with Python's package manager, pip.

How to install

To install addtopath with pip:

pip install addtopath

How to use

After installation with pip, the addtopath executable should be available on the PATH. It's very easy to use: just run it with a directory as an argument, to add that directory to the PATH.

To add the current working directory to the PATH, run:

addtopath .

It works with relative paths:

addtopath ..

It also works with the ~ symbol in Powershell, for example:

addtopath ~/scripts

You can, of course, supply the absolute path to your target directory:

addtopath "C:\Program Files\SomeProgram"

User and system PATHs

addtopath adds to the user path by default. This doesn't require admin permissions, and is usually sufficient. However, you can instead add to the system path using the -s or --system flag.

For example:

addtopath . -s

Note: This requires an administrator Powershell or Command Prompt.

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

addtopath-1.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

addtopath-1.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file addtopath-1.1.0.tar.gz.

File metadata

  • Download URL: addtopath-1.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for addtopath-1.1.0.tar.gz
Algorithm Hash digest
SHA256 36e4bf059f8528fbd153aca86bd715763f9db7936e089c9ba995cbf598d34332
MD5 079e61ee2bfa0c185525febd3552dd63
BLAKE2b-256 6a3e285641ecb84628365650cd02e6e40fe0e04ac2f0557bc71b3a77a2621250

See more details on using hashes here.

File details

Details for the file addtopath-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: addtopath-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for addtopath-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfacf42a5d9da238b588d4718fe93383caa91d0f9207f95fb91afd9181b194e6
MD5 db983fee93adb683abbb80a082c44d77
BLAKE2b-256 c161b9389b7c4691af7843c53554b1aa67f91fa09615a81326c77c6b95f7811d

See more details on using hashes here.

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