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.2.tar.gz
(2.5 kB
view hashes)