modules and generated code
Nigel Rantor
wiggly at wiggly.org
Tue Nov 14 10:13:49 EST 2006
Peter Otten wrote:
> Nigel Rantor wrote:
>
>> So, if I have a tool that generates python code for me (in my case,
>> CORBA stubs/skels) in a particular package is there a way of placing my
>> own code under the same package hierarchy without all the code living in
>> the same directory structure.
>
> http://docs.python.org/lib/module-pkgutil.html
Ooh, thanks for that.
Yep, looks like that should work, but it doesn't. :-/
Do you have any idea whether other __init__.py scripts from the same
logical module will still be run in this case?
The generated code uses its init script to pull in other code.
Off, to tinker some more with this.
n
More information about the Python-list
mailing list