[Pydev-users] [Users] pypredef and submodules
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2011-01-08 10:13:35
|
The following forum message was posted by moguri at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4044299: I have a module (bge) that only contains submodules (eg, render and logic). What is the proper way to create pypredef files for these? Currently I have a bge.pypredef, bge.render.pypredef and bge.logic.pypredef. bge.pypredef only has imports in it (import render; import logic). Without the imports using "bge." does nothing. However, the problem is this works (with the imports in bge.pypredef): [code]from bge import logic logic.foo # foo auto-completes[/code] but this doesn't: [code]import bge bge.logic.foo # logic will auto-complete, but not foo[/code] I'd like to be able to do the latter. Any thoughts? Thanks, Moguri |