Cross-platform tool for adding locations to the user PATH
Project description
userpath
CI/CD | |
Package | |
Meta |
This is a tool for modifying a user's PATH
.
Table of Contents
Installation
pip install userpath
CLI
$ userpath -h
Usage: userpath [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
append Appends to the user PATH
prepend Prepends to the user PATH
verify Checks if locations are in the user PATH
API
>>> import userpath
>>> location = r'C:\Users\Ofek\Desktop\test'
>>>
>>> userpath.in_current_path(location)
False
>>> userpath.in_new_path(location)
False
>>> userpath.append(location)
True
>>> userpath.in_new_path(location)
True
>>> userpath.need_shell_restart(location)
True
License
userpath
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
userpath-1.9.1.tar.gz
(11.1 kB
view details)
Built Distribution
File details
Details for the file userpath-1.9.1.tar.gz
.
File metadata
- Download URL: userpath-1.9.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8176728d98c914b6401781bf3b23fccd968d1647539c8788c7010375e02796 |
|
MD5 | 112c7732826e153841fc3686d008dc4d |
|
BLAKE2b-256 | 4d13b8c47191994abd86cbdb256146dbd7bbabcaaa991984b720f68ccc857bfc |
File details
Details for the file userpath-1.9.1-py3-none-any.whl
.
File metadata
- Download URL: userpath-1.9.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e085053e5161f82558793c41d60375289efceb4b77d96033ea9c84fc0893f772 |
|
MD5 | 63849573b6b0ee3cdd75472d5c0fbf25 |
|
BLAKE2b-256 | a22820c7dcdb12681b2e12224184a8a158e5df51feb0c68116cb4b1b991a4aab |