X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUITApp%2FSUITApp_init_python.cxx;h=0a10ff7c7b0247a7ec94d0b8030090dc225e0bbe;hb=331294345d3e1716fbf79ae25a2851011729be79;hp=3724dd562f3ecacc73f235f0909820712faed73c;hpb=4bcb2f56e92b7eab9f660cb78e8a52121194b0ff;p=modules%2Fgui.git diff --git a/src/SUITApp/SUITApp_init_python.cxx b/src/SUITApp/SUITApp_init_python.cxx index 3724dd562..0a10ff7c7 100644 --- a/src/SUITApp/SUITApp_init_python.cxx +++ b/src/SUITApp/SUITApp_init_python.cxx @@ -67,7 +67,7 @@ void SUIT_PYTHON::init_python(int argc, char **argv) script += "import sys\n"; script += "sys.excepthook = _custom_except_hook\n"; script += "del _custom_except_hook, sys\n"; - int res = PyRun_SimpleString(qPrintable(script)); + int res = PyRun_SimpleString(qUtf8Printable(script)); // VSR (22/09/2016): end of workaround PyEval_InitThreads(); // Create (and acquire) the interpreter lock - can be called many times // Py_InitThreads acquires the GIL