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
Built Distribution
File details
Details for the file addtopath-1.0.1.tar.gz
.
File metadata
- Download URL: addtopath-1.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d4e25951852101591b5d58d2b313c6e7aae5373678c1472d5556c1ba4df928 |
|
MD5 | b5606bc371a853c790111b6aec0be8b3 |
|
BLAKE2b-256 | d08747e5b34901eeabd41bb9952df91224e411050216209dc901046dd9c305ad |
File details
Details for the file addtopath-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: addtopath-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5901f491c6235f41e059fa4ee93245cbb37e4440b5dae66b59fa66b34b3be318 |
|
MD5 | a275f48e4e7689c77cf2fd430147dc80 |
|
BLAKE2b-256 | ce748dba3953d470b21556fd6b9e3a9c17a86b0b5f00d9ef6602b13388a2adfb |