[omniORB] Omniidl and python packages

Cetateanu Marius-B01107 Marius.Cetateanu at freescale.com
Tue Oct 13 13:52:00 BST 2009


 

> -----Original Message-----
> From: Duncan Grisby [mailto:duncan at grisby.org] 
> Sent: Wednesday, October 07, 2009 7:30 PM
> To: Cetateanu Marius-B01107
> Cc: omniorb-list at omniorb-support.com
> Subject: Re: [omniORB] Omniidl and python packages
> 
> On Thursday 24 September, "Cetateanu Marius-B01107" wrote:
> 
> [...]
> > So far so good. But
> > in the Example_idl.py file which is generated in intf/stubsCORBA/ I 
> > get the __name__ variable (at the end of the file) set in the 
> > following way:
> > "
> > #
> > # End of module "Example"
> > #
> > __name__ = "intf.stubsCORBA.intf.stubsCORBA.Example_idl"
> > "
> 
> It's a bug. I've fixed it in svn.

Thanks.

> 
> > The fact that the name of the package was doubled causes my program 
> > which uses Example to fail. Is the doubled name correct? If it's 
> > correct then why the import in the __init__.py was 
> generated without 
> > the doubled name?
> 
> What is your program doing?  Normally the name of the module 
> isn't required for anything. It's only set for information, really.
> 

My program has a custom way of loading the python modules (based on the
import module from Python) 
so it was getting confused by those doubled names.

> Cheers,
> 
> Duncan.
> 
> -- 
>  -- Duncan Grisby         --
>   -- duncan at grisby.org     --
>    -- http://www.grisby.org --
> 
> 

Marius Cetateanu  
DevTech  - Software Engineer
Freescale Semiconductor Romania SRL 
45, Tudor Vladimirescu Street 
Tati Business Center 
Bucharest 050881, Romania 
www.freescale.com 
Phone:    +040 213052078 
Mobile:    +040 742191809 
Fax:        +040 213052000 
email:  Marius.Cetateanu at freescale.com



More information about the omniORB-list mailing list