Skip to main content

Cross platform(ish) productivity commands written in python.

Project description

setenvironment

Actions Status Actions Status Actions Status

Linting

> 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


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)

Uploaded Source

Built Distribution

setenvironment-1.0.0-py2.py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page