maya mel python environment variables list path MAYA_SCRIPT_PATH
MEL
//getenv "MAYA_SCRIPT_PATH";//パスを確認
$sPath=`getenv "PATH"`;
print("$sPath= "+$sPath+"\n");
$sMAYA_SCRIPT_PATH=`getenv "MAYA_SCRIPT_PATH"`;
print("$sMAYA_SCRIPT_PATH= "+$sMAYA_SCRIPT_PATH+"\n");
$array = stringToStringArray($sMAYA_SCRIPT_PATH, ";");
for ($MSP in $array) {
print($MSP+"\n");
}
Python
import os
print("------------------------PATH---------------------------")
ePath = os.environ["PATH"]
ePath_List=ePath.split(";")
for ePath_line in ePath_List:
#for ev in environ:
print(ePath_line)
print("------------------------MAYA_SCRIPT_PATH-----------------------------")
mayaScriptPath = os.environ["MAYA_SCRIPT_PATH"]
mayaScriptPath_List=mayaScriptPath.split(";")
for mayaScriptPath_line in mayaScriptPath_List:
#for ev in environ:
print(mayaScriptPath_line)