You can set the value of environment variables within Maya by using the putenv command.
You can get the value of an environment variable within Maya by using the getenv command.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License