Cross platform(ish) productivity commands written in python.
Project description
setenvironment
> pip install setenvironment
> setenviroment_set foo bar
> setenviroment_unset foo
> setenviroment_addpath /my/path
> setenviroment_removepath /my/path
from setenvironment import set_env_var, add_env_path
set_env_var("FOO", "BAR")
add_env_path("MYPATH")
Cross platform way to set the environment.
When setting variables this tool will:
- unix/macos
- export the variable (so you can source the script)
- set the os.environ to the proper value
- write the value to the .bashrc file (make sure it's chmod +w)
- win32
- writes to the registery
- broadcasts the new value (cmd.exe ignores this though) to all available processes
Release Notes
- 1.0.0: Initial release
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
setenvironment-1.0.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for setenvironment-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37b0ff1885e8cbc89acdfcff62e591efae75395e95feb2dac46276a3310c665 |
|
MD5 | 6dff0d6c32662cb6f22ff0d7a870d640 |
|
BLAKE2b-256 | 33be1690a56375d3c2827f3ceb457e2f68f0a94236b649b5fbbafb606e548bb0 |