跨平台工具,用于将位置添加到用户PATH
项目描述
userpath
CI/CD | |
包 | |
元数据 |
这是一个用于修改用户 PATH
的工具。
目录
安装
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
许可证
userpath
在MIT许可证的条款下分发。
项目详情
下载文件
下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源代码分发
userpath-1.9.2.tar.gz (11.1 kB 查看哈希值)
构建的发行版
userpath-1.9.2-py3-none-any.whl (9.1 kB 查看哈希值)