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 details)
Built Distribution
File details
Details for the file envariable-1.3.tar.gz
.
File metadata
- Download URL: envariable-1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce538d3538819b2d2f9184637c6187c8856bd616893193d3ca353c53a1999a62 |
|
MD5 | 69120c5794573cbf00d47727b32e6af0 |
|
BLAKE2b-256 | 7b892fc1c5dd0bbaeee54d6007b080c562d76a04b8a6c5be64ad7bc4d7c1a37d |
File details
Details for the file envariable-1.3-py3-none-any.whl
.
File metadata
- Download URL: envariable-1.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175d8ca402e63da5e2e5de0ef54515d950c8b11cd53fe070046767f62d3815be |
|
MD5 | 6a82f42fecbfea87a2c14598804e9f41 |
|
BLAKE2b-256 | ce90318fc7f66b09c1e97d0e12186e10f99a39fa8f8453e3f5108316dce43a03 |