Hi Chad, is it included in beta2? I can't find the script. Is there another beta released? Thanks!
On Tue, Jan 5, 2010 at 5:45 AM, Chad Dombrova <[email protected]> wrote: > a script is included with the development version of pymel 1.0 for creating > reliable pi files for both maya and pymel packages. > > > On Jan 4, 2010, at 11:08 PM, ryant wrote: > >> I am looking into how to generate the pi files that Wing needs for >> auto completion. I am unsure how to use the generate_pi.py file that >> comes with Wing to do this. The files I need to convert I believe are >> the ones at this path: >> >> C:\Program Files\Autodesk\Maya2010\Python\lib\site-packages\maya\ >> >> If I want to generate the maya.cmds pi file where is the .pyc file for >> maya.cmds? >> >> When I use the generate_pi.py file it doesnt generate anything useful. >> Using the command prompt I type this in: >> >> C:\Program Files\Autodesk\Maya2010\Python\lib\site-packages\maya> >> python "C:\Program Files\Wing IDE 3.2\src\wingutils\generate_pi.py" >> OpenMaya.pyc OpenMaya.pi >> >> This then results in the following in the Command Prompt: >> >> Traceback (most recent call last): >> File "C:\Program Files\Wing IDE 3.2\src\wingutils\generate_pi.py", >> line 1028, >> in <module> >> ProcessModule(modname, magic_code, metadata, file=f) >> File "C:\Program Files\Wing IDE 3.2\src\wingutils\generate_pi.py", >> line 819, i >> n ProcessModule >> exec('import %s' % mod_name, namespace) >> File "<string>", line 1, in <module> >> ImportError: Bad magic number in .\OpenMaya.pyc >> >> It does generate a OpenMaya.pi file which is completely empty. >> >> Can someone point me in the right direction of how to generate the pi >> files needed for Wing properly? >> >> Ryan >> Character TD >> www.rtrowbridge.com/blog >> NaughtyDog Inc. >> >> -- >> http://groups.google.com/group/python_inside_maya > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
