Re: modules and generated code

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 14:33, Nigel Rantor wrote: I have an IDL file that is used to generate a set of stub and skeleton code that is not human-modifiable. Eventually I would like to have my IDL in source control and have a setup script able to generate my stubs and skels and install them for

Re: modules and generated code

2006-11-15 Thread Fredrik Lundh
Nigel Rantor wrote: > Basically, I want the same top-level package to have bits of code in > different directories, but because Python requires the __init__.py file > it only picks up the first one in PYTHONPATH. would a single __init__.py function that does from-import-* on the various implem

Re: modules and generated code

2006-11-15 Thread Nigel Rantor
J. Clifford Dyer wrote: > > Maybe I'm missing something obvious, but it sounds like you are > over-complicating the idea of inheritance. Do you just want to create a > subclass of the other class? Nope, that isn't my problem. I have an IDL file that is used to generate a set of stub and skele

Re: modules and generated code

2006-11-15 Thread J. Clifford Dyer
Nigel Rantor wrote: > Peter Otten wrote: >> Nigel Rantor wrote: >> >>> 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 t

Re: modules and generated code

2006-11-14 Thread Nigel Rantor
Peter Otten wrote: > Nigel Rantor wrote: > >> 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 a

Re: modules and generated code

2006-11-14 Thread Peter Otten
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

Re: modules and generated code

2006-11-14 Thread Nigel Rantor
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.

Re: modules and generated code

2006-11-14 Thread Peter Otten
Nigel Rantor wrote: > 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