From 62dfe681f2eb68bb16dfddce2d8a2b997f7338d4 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 18 Aug 2005 09:00:35 +0000 Subject: [PATCH] Windows porting --- src/Container/Container_i.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 02d8254fb..319616a10 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -170,6 +170,11 @@ Engines_Container_i::Engines_Container_i (CORBA::ORB_ptr orb, if (!_isSupervContainer) { Py_ACQUIRE_NEW_THREAD; +#ifdef WNT +Sleep(2000); // mpv: this is temporary solution: there is a unregular crash if not + PyRun_SimpleString("import sys\n"); // first element is the path to Registry.dll, but it's wrong + PyRun_SimpleString("sys.path = sys.path[1:]\n"); +#endif PyRun_SimpleString("import SALOME_Container\n"); PyRun_SimpleString((char*)myCommand.c_str()); Py_RELEASE_NEW_THREAD; -- 2.39.2