[omniORB] exec-prefix != prefix and omniidl

Vladimir Panov gbr at voidland.org
Sat Mar 25 01:25:00 GMT 2006


Hi.

I tried to build and install omniORB 4.0.7 with exec-prefix != prefix. 
Then I tried to run omniidl, and got the following error:

'No module named _omniidl'

I have attached a patch which seems to fix the problem.

Vlado
-------------- next part --------------
diff -r -u -N omniORB-4.0.7-orig/src/tool/omniidl/python/scripts/omniidl.in omniORB-4.0.7/src/tool/omniidl/python/scripts/omniidl.in
--- omniORB-4.0.7-orig/src/tool/omniidl/python/scripts/omniidl.in	2002-02-18 21:00:42.000000000 +0200
+++ omniORB-4.0.7/src/tool/omniidl/python/scripts/omniidl.in	2006-03-19 02:13:58.000000000 +0200
@@ -70,6 +70,7 @@
 
 # Last chance, try a path based on the installation prefix
 sys.path.append("@prefix@/lib/python" + sys.version[:3] + "/site-packages")
+sys.path.append("@exec_prefix@/lib/python" + sys.version[:3] + "/site-packages")
 
 try:
     import _omniidl


More information about the omniORB-list mailing list