[omniORB] Threading in python

Nick Murtagh murtaghn@tcd.ie
Fri, 3 May 2002 17:22:26 +0100


On Friday 03 May 2002 17:03, Thomas Lockhart wrote:
> 1) In my original code, I had the following block just before the import
> statements:
>
> try:
>   import omniORB
>   is_ORBit = None
>   is_omniORB = 1
>   print "Using omniORB"
> except:
>   is_ORBit = 1
>   is_omniORB = None
>   print "Using ORBit"
>
> but it turns out that even though I've explicitly imported omniORB it
> doesn't mean that is where CORBA will come from. I'm sure I'm exposing
> my lack of python background in getting tripped up here.

Yes. This would only work if you then qualified all access to CORBA as 
omniORB.CORBA. In other words, the import statement does not search
already imported modules, just the filesystem.