From ee49307ec13fbd93f8c81968706c68044f0a10a1 Mon Sep 17 00:00:00 2001 From: nri Date: Wed, 16 Jul 2003 07:57:24 +0000 Subject: [PATCH] NRI : Force import GEOM. --- src/GEOM_SWIG/GEOM_shared_modules.py | 19 +++++++++++++++++++ src/GEOM_SWIG/Makefile.in | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/GEOM_SWIG/GEOM_shared_modules.py diff --git a/src/GEOM_SWIG/GEOM_shared_modules.py b/src/GEOM_SWIG/GEOM_shared_modules.py new file mode 100644 index 000000000..bd994fadc --- /dev/null +++ b/src/GEOM_SWIG/GEOM_shared_modules.py @@ -0,0 +1,19 @@ +""" + +""" + +# force GEOM importation at interpretor initialization +# see salome_shared_modules.py +# (avoids incomplete import at run time) + +print "============== import GEOM =======================" + +import GEOM + +# this function is required + +def init_shared_modules(): + """ + This function initializes shared modules that need to be + """ + pass diff --git a/src/GEOM_SWIG/Makefile.in b/src/GEOM_SWIG/Makefile.in index 412bb23b1..c6a8999a3 100644 --- a/src/GEOM_SWIG/Makefile.in +++ b/src/GEOM_SWIG/Makefile.in @@ -51,7 +51,8 @@ EXPORT_PYSCRIPTS = libGEOM_Swig.py geompy.py batchmode_geompy.py \ GEOM_Partition2.py \ GEOM_Partition3.py \ GEOM_Partition4.py \ - GEOM_Partition5.py + GEOM_Partition5.py \ + GEOM_shared_modules.py LIB_CLIENT_IDL = SALOMEDS.idl \ SALOMEDS_Attributes.idl \ -- 2.39.2