Or if you just want to find out which Maya versions are installed to the 
standard locations, you could use a glob:

import glob
mayas = glob.glob('C:/Program Files/Autodesk/*/bin/maya.exe')



On Jan 7, 2013, at 3:03 PM, Jesse Capper wrote:

> Using python? Like just walking down directories looking for maya.exe?
> 
> If that's all you want to do, something like this should work:
> http://pastebin.com/vnGZUNj2
> 
> On Friday, January 4, 2013 10:02:58 AM UTC-8, Sakthi Vin wrote:
>> It can be any file. But my requirement is to get the list of all the 
>> installed version of maya in my/any system. which means if i had installed 
>> maya 2011 and 2013 i want the maya.exe file full path of both the versions. 
>> i tried to get using regedit but its throwing error. Is there any other 
>> command to get this?
>> 
>> 
>> 
>> 
>> 
>> On Friday, January 4, 2013 11:55:04 AM UTC+5:30, Justin Israel wrote:
>> 
>>> Is this question about getting a full path to any file on a filesystem or 
>>> specifically about finding the full path to a given Maya executable? 
>> 
>>> 
>> 
>>> 
>> 
>>> On Thursday, January 3, 2013, Sakthi Vin  wrote:
>> 
>>> 
>> 
>>> Suppose if i have a file named maya.exe under 2 folders 2011/bin and 
>>> 2013/bin. How will i get the full path of both the files?.
>> 
>>> 
>> 
>>> It should give me the full dir like below if i just mention the file name
>> 
>>> 
>> 
>>> c:/program files/autodesk/maya2011/bin/maya.exe
>> 
>>> 
>> 
>>> c:/program files/autodesk/maya2013/bin/maya.exe
>> 
>>> 
>> 
>>> 
>> 
>>> 
>> 
>>> --
>> 
>>> 
>> 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Python Programming for Autodesk Maya" group.
>> 
>>> 
>> 
>>> To post to this group, send email to [email protected].
>> 
>>> 
>> 
>>> To unsubscribe from this group, send email to 
>>> [email protected].
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].


Reply via email to