More on this... This works in the editor and internal console:
import qgis.utils test=qgis.utils.os.getcwd() This only works in the internal console: import qgis.core test=qgis.core.QGis.QGIS_VERSION Now both modules are in the same folder. qgis.core is qgis\core.pyd, and qgis.utils is qgis\utils.py. Duarte On Aug 3, 11:46 am, Duarte Carreira <[email protected]> wrote: > Answering myself... > > Yes it works fine. > > The only problem I have is with pyd modules. I can't make it work in > the editor. But it works in the Internal console. > For instance, this works in the Internal console: > > from qgis.core import * > test=QGis. #at this point pressing tab gives me all the members in > QGis. > > But the same code does not work in the editor window/pane. > > Other py modules are recognized. Just pyd modules don't work. > > Duarte > > On Jul 30, 3:33 pm, Duarte Carreira <[email protected]> wrote: > > > > > Hi all. > > > Does code completion work in this version with external modules? I can > > see PyQt4 modules but other modules I'm using do not show up when I > > press TAB. > > > I have rope installed, and do NOT have QScintilla. > > > Thanks, > > Duarte -- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
