From 36cb4d95ff2276ba3936f9c9fd28f104a996c7d1 Mon Sep 17 00:00:00 2001 From: nri Date: Thu, 17 Jul 2003 07:17:43 +0000 Subject: [PATCH] NRI : Force import of MED_idl and MedGen_idl. --- src/MED_SWIG/MED_shared_modules.py | 21 ++++++++++++++++ src/MED_SWIG/Makefile.in | 39 ++++++++++++++++++++++++++++++ src/Makefile.in | 2 +- 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 src/MED_SWIG/MED_shared_modules.py create mode 100644 src/MED_SWIG/Makefile.in diff --git a/src/MED_SWIG/MED_shared_modules.py b/src/MED_SWIG/MED_shared_modules.py new file mode 100644 index 000000000..036caa329 --- /dev/null +++ b/src/MED_SWIG/MED_shared_modules.py @@ -0,0 +1,21 @@ +""" + +""" + +# force GEOM importation at interpretor initialization +# see salome_shared_modules.py +# (avoids incomplete import at run time) + +print "============== import MED_idl =======================" +print "============== import Med_Gen_idl =======================" + +import MED_idl +import Med_Gen_idl + +# this function is required + +def init_shared_modules(): + """ + This function initializes shared modules that need to be + """ + pass \ No newline at end of file diff --git a/src/MED_SWIG/Makefile.in b/src/MED_SWIG/Makefile.in new file mode 100644 index 000000000..261215bd7 --- /dev/null +++ b/src/MED_SWIG/Makefile.in @@ -0,0 +1,39 @@ +# MED MED_SWIG : binding of C++ implementaion with Python +# +# Copyright (C) 2003 OPEN CASCADE +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +# +# +# +# File : Makefile.in +# Author : Nicolas REJNERI +# Module : MED +# $Header$ + +top_srcdir=@top_srcdir@ +top_builddir=../.. +srcdir=@srcdir@ +VPATH=.:@srcdir@:@top_srcdir@/idl + + +@COMMENCE@ + +EXPORT_SHAREDPYSCRIPTS=\ + MED_shared_modules.py + +@CONCLUDE@ \ No newline at end of file diff --git a/src/Makefile.in b/src/Makefile.in index 3c7d5d725..4e21c1262 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -31,6 +31,6 @@ VPATH=.:@srcdir@ @COMMENCE@ -SUBDIRS = MEDMEM MEDMEM_SWIG MedMem MED MEDGUI MedCorba_Swig +SUBDIRS = MEDMEM MEDMEM_SWIG MedMem MED MEDGUI MedCorba_Swig MED_SWIG @MODULE@ -- 2.39.2