Salome HOME
Merge branch V7_3_1_BR
[modules/gui.git] / src / PyInterp / PyInterp_Dispatcher.cxx
index 6f5af57bfa9ead484d95c3dd2bdd3615f101f4d8..73898b53dfff115b721d53c78be82c60853b8c3f 100755 (executable)
@@ -96,11 +96,11 @@ void PyInterp_Request::setListener( QObject* o )
 
 void PyInterp_LockRequest::safeExecute()
 {
-  if ( getInterp() ){
-    PyLockWrapper aLock = getInterp()->GetLockWrapper();
+  //if ( getInterp() ){  // No need to have an interpreter now! we can simply run in a empty context
+    PyLockWrapper aLock; // Acquire GIL
     //ProcessVoidEvent( new PyInterp_ExecuteEvent( this ) );
     execute();
-  }
+  //}
 }
 
 PyInterp_Event::~PyInterp_Event()