[omniORB] RE: Omniidl and python packages
Cetateanu Marius-B01107
Marius.Cetateanu at freescale.com
Thu Sep 24 15:38:30 BST 2009
> -----Original Message-----
> From: Cetateanu Marius-B01107
> Sent: Thursday, September 24, 2009 4:28 PM
> To: 'omniorb-list at omniorb-support.com'
> Subject: Omniidl and python packages
>
>
>
> Hi,
>
> I have an IDL file named Example.idl. I'm generating the
> python stub from this file with the following command line:
> omniidl -bpython -Wbpackage=intf.stubsCORBA. According to the
> documentation -Wbpackage should put both python modules and
> stub files in package intf.stubsCORBA. As a result of the
> command I have the
> following: intf/stubsCORBA/Example and
> intf/stubsCORBA/Example__POA directories with the __init__.py
> files in them; both of files contain the following import
> "import intf.stubsCORBA.Example_idl". 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"
> "
> 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?
>
> Thanks
>
> 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
>
>
Sorry!
I forgot to mention that I use omniORB 4.3.1 with omniORBpy 3.3. This
behavior was not present with the previous version I used: omniORB 4.0.7
with omniORBpy 2.7.
More information about the omniORB-list
mailing list