diff --git a/Plugins/ScriptingPython/dynamicpythonapi.h b/Plugins/ScriptingPython/dynamicpythonapi.h index 5b6692bbd3..941a455048 100644 --- a/Plugins/ScriptingPython/dynamicpythonapi.h +++ b/Plugins/ScriptingPython/dynamicpythonapi.h @@ -38,6 +38,7 @@ extern PyObject* PyFrame_GetLocals(PyFrameObject*); PYAPI_METHOD(Py_IncRef) \ PYAPI_METHOD(Py_Initialize) \ PYAPI_METHOD(Py_NewInterpreter) \ + PYAPI_METHOD(PyThreadState_GetFrame) \ PYAPI_METHOD(PyBool_FromLong) \ PYAPI_METHOD(PyByteArray_AsString) \ PYAPI_METHOD(PyByteArray_Size) \ diff --git a/Plugins/ScriptingPython/scriptingpython.cpp b/Plugins/ScriptingPython/scriptingpython.cpp index 0ad7e27a81..7c71b3498d 100644 --- a/Plugins/ScriptingPython/scriptingpython.cpp +++ b/Plugins/ScriptingPython/scriptingpython.cpp @@ -216,7 +216,7 @@ QStringList ScriptingPython::discoverLibraries() const {"/Library/Frameworks/Python.framework/Versions/"}, {"*"}, {"/Python"} #elif defined(Q_OS_UNIX) QStringList({"", "/usr", "/usr/local", "/usr/pkg"}) + dirNames(pathEnv), - {"/lib/", "/lib64/"}, {"libpython*.so*"} + {"/lib/", "/lib64/", "/lib/x86_64-linux-gnu/", "/lib64/x86_64-linux-gnu/", "/lib/x86-linux-gnu/"}, {"libpython*.so*"} #elif defined(Q_OS_WINDOWS) QStringList({QDir::homePath() + "/AppData/Local/Programs/Python"}) + pathEnv, {"", "/bin", "/lib"}, {"*python*.dll"}