The following forum message was posted by fabioz at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3785840:

If you\'re in the latest pydev, you can create an interactive interpreter using 
your running vm: \"Jython using VM running Eclipse console\" -- Just 
Ctrl+Alt+Enter and choose that option.

Then, in the shell you can do:

import org.python.pydev.plugin.PydevPlugin
manager = org.python.pydev.plugin.PydevPlugin.getPythonInterpreterManager()
info = manager.getDefaultInterpreterInfo(None)
modules_manager = info.getModulesManager()
for key in modules_manager.getOnlyDirectModules(): 
        print key

The \"key\" there is an object with the name resolved and the file which 
belongs to that name.

The code that will create that information is at 
org.python.pydev.editor.codecompletion.revisited.ModulesManager.changePythonPath(String,
 IProject, IProgressMonitor).

Cheers,

Fabio


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to