win32api.GetEnvironmentVariable

str = GetEnvironmentVariable(variable)

Retrieves the value of an environment variable.

Parameters

variable : str

The variable to get

Win32 API References

Search for GetEnvironmentVariable at msdn, google or google groups.

Return Value

Returns None if environment variable is not found