Skip to main content

Change System Environment Variable permanently

Project description

Change System Environment Variable permanently
github page

Install

pip install envariable

Example

from envarible import setenv, unsetenv, getenv, getenvall
# The variable TEST is stored permanently with the VALUE value
setenv('TEST', 'VALUE') 

print(getenv('TEST'))
>>> VALUE

# The TEST variable is permanently deleted
unsetenv('TEST')


print(getenv('TEST'))
>>> None

# returned all Environment Variable
all_env = getenvall()

Example 2

from envariable import setenv, getenv

path = getenv('PATH')
setenv('PATH', f'{path}:/my/dir')

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

envariable-1.3.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

envariable-1.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded 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