]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL10310: Problem with incomplete import of python CORBA modules. Full patch applied.
authorjfa <jfa@opencascade.com>
Thu, 1 Dec 2005 09:19:10 +0000 (09:19 +0000)
committerjfa <jfa@opencascade.com>
Thu, 1 Dec 2005 09:19:10 +0000 (09:19 +0000)
salome_adm/unix/config_files/check_omniorb.m4
salome_adm/unix/pythonbe.py [new file with mode: 0644]

index 1f63365bf30438d3bf8ed8057466d08d16f84114..7a6b6fd6dd8416103438511d68c22247d6dd81a5 100644 (file)
@@ -181,8 +181,11 @@ fi
 if test "x$omniORB_ok" = "xyes" 
 then
 
-  OMNIORB_IDLCXXFLAGS="-nf -I$OMNIORB_ROOT/idl"
-  OMNIORB_IDLPYFLAGS="-bpython -I$OMNIORB_ROOT/idl"
+  OMNIORB_IDLCXXFLAGS="-nf -I${OMNIORB_ROOT}/idl"
+  OMNIORB_IDLPYFLAGS_1='-bpythonbe -p ${top_srcdir}/salome_adm/unix'
+  OMNIORB_IDLPYFLAGS_2=" -I${OMNIORB_ROOT}/idl"
+  OMNIORB_IDLPYFLAGS=${OMNIORB_IDLPYFLAGS_1}${OMNIORB_IDLPYFLAGS_2}
+
   AC_SUBST(OMNIORB_IDLCXXFLAGS)
   AC_SUBST(OMNIORB_IDLPYFLAGS)
 
diff --git a/salome_adm/unix/pythonbe.py b/salome_adm/unix/pythonbe.py
new file mode 100644 (file)
index 0000000..85be617
--- /dev/null
@@ -0,0 +1,21 @@
+
+pymodule_template = """\
+# DO NOT EDIT THIS FILE!
+#
+# Python module @module@ generated by omniidl
+
+import omnipatch
+omnipatch.updateModule("@module@")
+
+# ** 1. Stub files contributing to this module
+
+# ** 2. Sub-modules
+
+# ** 3. End"""
+
+import omniidl_be.python
+omniidl_be.python.pymodule_template=pymodule_template
+
+def run(tree, args):
+    omniidl_be.python.run(tree, args)
+