Skip to main content

CLI tool for adding things to the PATH on Windows

Project description

addtopath

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

addtopath is a Python program which runs like a standalone executable when installed with pip.

How to install

addtopath can be installed 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 the desired directory to add to the PATH.

To add the current working directory to the PATH:

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.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

addtopath-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: addtopath-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for addtopath-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b4e9d6d750e3060175688f4d6744b64b419add80dca77274303340f2a5dd61bd
MD5 834479efe8f8a08f5adac981f3403dae
BLAKE2b-256 e4c20539f7e7886f59d8683c32e5b3bf9df58a811ba2c1a98d051e8ffe026a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: addtopath-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for addtopath-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9ca0a164879e041091ff55ebd2517644cc2f0bc843da2c127d41c812f42f3c2
MD5 30d7f7cc3a7df7d33aeedd7f4ca83bc0
BLAKE2b-256 f3af729bc3c43f24898b0576964d1139a51a76347027831446db7c06b3e3e329

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