Segfault fix

This commit is contained in:
xarkes 2018-03-25 13:21:07 +02:00
parent 5001d395af
commit 152503a936

View File

@ -81,7 +81,9 @@ void JupyterConnection::initPython()
void JupyterConnection::createCutterJupyterModule()
{
if (pyThreadState) {
PyEval_RestoreThread(pyThreadState);
}
QFile moduleFile(":/python/cutter_jupyter.py");
moduleFile.open(QIODevice::ReadOnly);