@COMMENCE@
-EXPORT_PYSCRIPTS = SuperV.py batchmode_SuperV.py
+EXPORT_PYSCRIPTS = SuperV.py batchmode_SuperV.py SUPERV_shared_modules.py
EXPORT_HEADERS = \
SuperV_Impl.hxx \
--- /dev/null
+"""
+
+"""
+
+# force SUPERV importation at interpretor initialization
+# see salome_shared_modules.py
+# (avoids incomplete import at run time)
+
+print "============== import SUPERV ======================="
+
+import SUPERV
+
+# this function is required
+
+def init_shared_modules():
+ """
+ This function initializes shared modules that need to be
+ """
+ pass
from salome import lcc
from salome import naming_service
from salome import CORBA
+ from salome import sg
import SALOME_ModuleCatalog
except :
import curses
# SuperVision.Swig = 1
# print 'SuperV_Swig created'
#except :
-# SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","Supervision")
+# SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","SUPERV")
# SuperVision.Swig = 0
# print 'Supervision Component loaded'
-SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","Supervision")
+SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","SUPERV")
SuperVision.Swig = 0
modulecatalog = naming_service.Resolve("/Kernel/ModulCatalog")
from batchmode_salome import naming_service
from batchmode_salome import CORBA
from batchmode_salome import myStudy
+ import SUPERV
+ import SUPERV_idl
except :
import curses
from LifeCycleCORBA import *
import re
from types import *
import SALOMEDS
+import SALOMEDS_Attributes_idl
#try :
# SuperVision = SuperV_Swig( len(sys.argv) , sys.argv )
# SuperVision.Swig = 1
# print 'SuperV_Swig created'
#except :
-# SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","Supervision")
+# SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","SUPERV")
# SuperVision.Swig = 0
# print 'Supervision Component loaded'
-SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","Supervision")
+SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","SUPERV")
SuperVision.Swig = 0
modulecatalog = naming_service.Resolve("/Kernel/ModulCatalog")