# [wingide-users] pi files

John Burnett JBurnett at blizzard.com
Mon May 19 16:52:35 MDT 2008

This is actually still causing a problem here...

If I do this in a new py file:

####
import maya.cmds
maya.cmds.
####

...I don’t get any auto-complete info.  However, this works:

####
import maya.cmds as cmds
cmds.
####

...my prefs has "C:\Users\jburnett\AppData\Roaming\Wing IDE 3\pi-files" listed in my pi-files pref, and "C:\Users\jburnett\AppData\Roaming\Wing IDE 3\pi-files\maya\cmds.pi" exists.

Any guidance?  I think I'd expect both to work?

John

-----Original Message-----
From: wingide-users-bounces at wingware.com [mailto:wingide-users-bounces at wingware.com] On Behalf Of John Burnett
Sent: Thursday, May 15, 2008 2:42 PM
To: Wingware Support
Cc: wingide-users at wingware.com
Subject: RE: [wingide-users] pi files

> > My "Edit, Preferences, Source Analysis, Advanced, Interface File Path"
> > contains this:
> > pi-files
> > c:\Users\jburnett\AppData\Roaming\Wing IDE 3\pi-files <- just for good measure.. not needed?
>
> This is needed.  The directory is not scanned by default.

Ok... however, that's a bit confusing to me.  The default for the interface file paths seems to be a single entry of "pi-files", which I'm assuming is supposed to be a relative path.  And the tooltip for the field says "if the directory name is relative, it will be interpreted as relative to the user settings directory".  If that's true, aren't both the paths above equivalent?  However, if I just have the "pi-files" entry, the pi files are ignored.

As for having the maya subdirectory... makes sense, that works, and thanks!

John

-----Original Message-----
From: Wingware Support [mailto:support at wingware.com]
Sent: Thursday, May 15, 2008 1:16 PM
To: John Burnett
Cc: wingide-users at wingware.com
Subject: Re: [wingide-users] pi files

John Burnett wrote:
> I think I'm having a hard time getting some pi files working, and was wondering what I'm missing.  Sorry for the length below, but I'm trying to cover my setup.  To describe the problem - I'm using a program call Maya that has python embedded, and it ships with some files like this:
> ...
> ...not there's no py files.  SO, my first question is, will pi files help in this situation?  I'm *assuming* so?

Yes, .pi files can be used to describe the interface of the module.

> Under that assumption, I have a set of pi files like this:
>
> c:\Users\jburnett\AppData\Roaming\Wing IDE 3\pi-files\OpenMaya.pi
>
> My "Edit, Preferences, Source Analysis, Advanced, Interface File Path" contains this:
> pi-files
> c:\Users\jburnett\AppData\Roaming\Wing IDE 3\pi-files <- just for good measure.. not needed?

This is needed.  The directory is not scanned by default.

> Lastly, if I make a new python file, and type this:
> import maya.OpenMaya as om
> om.
> ....I don't get any auto-complete information.

It should work if you move OpenMaya.pi to c:\Users\jburnett\AppData\Roaming\Wing IDE 3\pi-files\maya  Since OpenMaya is imported from the maya package, the OpnMaya.pi must be in a maya subdirectory.

Cheers,

John