Cross-platform tool for adding locations to the user PATH
Project Links
Meta
Author: Ofek Lev
Requires Python: >=3.7
Classifiers
Development Status
- 4 - Beta
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
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.
Feb 29, 2024
1.9.2
Sep 07, 2023
1.9.1
Jul 18, 2023
1.9.0
Jan 30, 2022
1.8.0
Jul 24, 2021
1.7.0
May 29, 2021
1.6.0
May 08, 2021
1.5.0
Jan 17, 2021
1.4.2
Jun 25, 2020
1.4.1
May 09, 2020
1.4.0
Oct 20, 2019
1.3.0
Jul 13, 2019
1.2.0
May 15, 2018
1.1.0
May 15, 2018
1.0.0
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies: