Saturday, January 18, 2014

A way to change a system environment variable in Python program.

In Python program we can set system environment variables by using os.environ. For example,

os.environ ["DDD"] = "..." 

But there is a problem that the variable will be disappear after the Python program exits because the variable is owned by the Python program.

The following way can solve the problem to create an environment variable with Python and share it with other programs.

-Count

Wednesday, January 15, 2014