win32profile.ExpandEnvironmentStringsForUser

PyUnicode = ExpandEnvironmentStringsForUser(Token, Src )

Replaces environment variables in a string with per-user values

Parameters

Token : PyHANDLE

The logon token for a user. Use None for system variables.

Src : PyUnicode

String containing environment variables enclosed in % signs