#include
<MCommonSystemUtils.h>
Methods for getting and setting environment variables, make directories etc.
This class provides some standard Operating System functionality that is available from MEL. These methods can be called instead of invoking MEL through the MGlobal class.
NOTE: These methods are provided as a convenience. It would be more efficient to call directly into the operating system than to use the methods of this class.
Static Public Member Functions |
|
static MString | getEnv (const MString &variable, MStatus *ResultStatus=NULL) |
static MStatus | putEnv (const MString &variable, const MString &value) |
static MStatus | makeDirectory (const MString &path) |
static MStatus | getEnv (const MString &variable, MString &result) |
NO SCRIPT SUPPORT. |
MString MCommonSystemUtils::getEnv | ( | const MString & | variable, | |
MStatus * | ReturnStatus =
NULL |
|||
) | [static] |
This method is used to access user environment variables.
[in] | variable | the user environment variable |
[out] | ReturnStatus | Status Code. See below. |
This method can be used to create a new environment variable or update the value of an existing environment variable.
[in] | variable | the environment variable |
[in] | value | the value to set the environment variable to |
This method is used to create a directory.
[in] | path | the path of the new directory |
NO SCRIPT SUPPORT.
This method is used to access user environment variables.
Python Notes
This method is not supported in Python. Please see the one which returns a string
[in] | variable | the user environment variable |
[out] | result | variable value |
Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |