support for Maya2012

This commit is contained in:
Chris Brunner 2011-05-16 21:18:07 +00:00
parent 438ab5a1fd
commit 196cdef8a2
2 changed files with 4 additions and 2 deletions

View File

@ -40,6 +40,7 @@ MAYAVERSIONINFO=[("MAYA6", "6.0"),
("MAYA2009","2009"),
("MAYA2010","2010"),
("MAYA2011","2011"),
("MAYA2012","2012"),
]
MAXVERSIONINFO = [("MAX6", "SOFTWARE\\Autodesk\\3DSMAX\\6.0", "installdir", "maxsdk\\cssdk\\include"),

View File

@ -58,6 +58,7 @@ struct { char *ver, *key; } maya_versions[] = {
{ "MAYA2009", "2009" },
{ "MAYA2010", "2010" },
{ "MAYA2011", "2011"},
{ "MAYA2012", "2012"},
{ 0, 0 },
};
@ -288,8 +289,8 @@ int main(int argc, char **argv)
// bin\python25.zip (within loc)
// Python\lib\site-packages (within loc)
// ...so set PYTHONPATH accordingly:
if (strcmp(key, "2011") == 0) {
//Maya 2011 is built against Python 2.6 so look for that one instead
if (strcmp(key, "2011") == 0 || strcmp(key, "2012") == 0) {
//Maya 2011 and 2012 are built against Python 2.6 so look for that one instead
sprintf(env4, "PYTHONPATH=%s\\bin\\python26.zip;%s\\Python\\lib\\site-packages", loc, loc);
} else {
sprintf(env4, "PYTHONPATH=%s\\bin\\python25.zip;%s\\Python\\lib\\site-packages", loc, loc);