From: smh Date: Tue, 31 May 2005 11:04:36 +0000 (+0000) Subject: SAN: Fix for RH 8 X-Git-Tag: T3_0_0_a1~61 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95dc39edb6540920aaf02f75191e8e0ff1ce7b56;p=modules%2Fgui.git SAN: Fix for RH 8 --- diff --git a/src/SalomeApp/SalomeApp_PyInterp.cxx b/src/SalomeApp/SalomeApp_PyInterp.cxx index 93520c9c4..1adef677b 100755 --- a/src/SalomeApp/SalomeApp_PyInterp.cxx +++ b/src/SalomeApp/SalomeApp_PyInterp.cxx @@ -36,8 +36,6 @@ static int MYDEBUG = 0; static int MYDEBUG = 0; #endif -PyObject *SalomeApp_PyInterp::salome_shared_modules_module = NULL; - /*! * constructor : multi Python interpreter, one per SALOME study. * calls initialize method defined in base class, which calls virtual methods @@ -80,21 +78,6 @@ bool SalomeApp_PyInterp::initContext() if ( !PythonConsole_PyInterp::initContext() ) return false; - /* - salome_shared_modules should be imported only once - */ - if ( !salome_shared_modules_module ) - { - salome_shared_modules_module = PyImport_ImportModule( "salome_shared_modules" ); - if ( !salome_shared_modules_module ) - { - INFOS( "SalomeApp_PyInterp::initContext() - salome_shared_modules_module == NULL" ); - PyErr_Print(); - PyErr_Clear(); - return false; - } - } - // Debut modif CCAR // Import special module to change the import mechanism PyObjWrapper m1( PyImport_ImportModule( "import_hook" ) ); diff --git a/src/SalomeApp/SalomeApp_PyInterp.h b/src/SalomeApp/SalomeApp_PyInterp.h index e03c4ff05..065f8efd0 100755 --- a/src/SalomeApp/SalomeApp_PyInterp.h +++ b/src/SalomeApp/SalomeApp_PyInterp.h @@ -34,8 +34,6 @@ class SalomeApp_PyInterp : public PythonConsole_PyInterp { public: - static PyObject *salome_shared_modules_module; - SalomeApp_PyInterp(); virtual ~SalomeApp_PyInterp();