[omniORB] OmniORBpy and packaging
Duncan Grisby
dgrisby@uk.research.att.com
Wed, 03 Jan 2001 14:55:11 +0000
On Wednesday 3 January, Laurent Pointal wrote:
> I use the stubs generated by OmniORB from an IDL interface as a part of a
> larger Python package.
[...]
> The problem is that myInterface_idl.py is not itself in the python path, it
> must be called with import myPackage.myInterface_idl to be found with the
> current path.
You should use the -Wbpackage option to omniidl like
omniidl -bpython -Wbpackage=myPackage foo.idl
That will put both the stubs and the modules in myPackage, with the
correct import statements. You can put them in different packages with
-Wbstubs and -Wbmodules.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --