win32api.GetEnvironmentVariableW

PyUnicode = GetEnvironmentVariableW(Name)

Retrieves the unicode value of an environment variable.

Parameters

Name : str

The variable to retrieve

Win32 API References

Search for GetEnvironmentVariableW at msdn, google or google groups.

Return Value

Returns None if environment variable is not found