From 9c94ac41cbe7492cb9543f1410cf5b8cb79ac1d2 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 31 Oct 2013 13:50:21 +0000 Subject: [PATCH] Fix hangup on "import pvsimple" --- src/PVGUI/PVGUI_Module.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index e2d8bd34..884032f7 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -638,6 +638,7 @@ void PVGUI_Module::onVariableChanged(pqVariableType t, const QString) { void PVGUI_Module::execPythonCommand(const QString& cmd, bool inSalomeConsole) { + if ( PyInterp_Dispatcher::Get()->IsBusy() ) return; if ( inSalomeConsole ) { SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >(SUIT_Session::session()->activeApplication()); -- 2.39.2