[PyKDE] sip modules as part of packages

Phil Thompson phil at river-bank.demon.co.uk
Fri Nov 16 20:44:34 GMT 2001


Andreas Gerstlauer wrote:
> 
> Ok, I found where the problem is... When looking for the module
> dictionary, the sipRegisterModule() function assumes that the module
> name is "module" whereas it could actually be "package.module".
> 
> I created a patch for sip which fixes that by passing the real
> module name ("__name__") through an optional argument to
> sipInitModule()/sipRegisterModule() for lookup of the corresponding
> dictionary (defaults to hardcoded module name if no argument is
> passed). See attachement.
> 
> In the patch, I am using the passed module name only for the
> lookup in sipRegisterModule(). I don't know what implications
> updating the md_name in the sipModule data structure would
> have (i.e. what else that is used for). Possibly that should
> get updated, too?

Nice. Applied with minor changes - md_name is now only set this way.

Thanks,
Phil




More information about the PyQt mailing list