Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Mar 8, 2020
1 parent 2bbdb86 commit 2494b3d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions pyqt5.patch
@@ -1,16 +1,15 @@
diff --git a/qmlscene/pluginloader.cpp b/qmlscene/pluginloader.cpp
index 635d31e..7c501cf 100644
index 635d31e..d6acd6e 100644
--- a/qmlscene/pluginloader.cpp
+++ b/qmlscene/pluginloader.cpp
@@ -412,6 +412,17 @@ PyObject *PyQt5QmlPlugin::getModuleAttr(const char *module, const char *attr)
@@ -412,6 +412,16 @@ PyObject *PyQt5QmlPlugin::getModuleAttr(const char *module, const char *attr)
void PyQt5QmlPlugin::getSipAPI()
{
#if defined(SIP_USE_PYCAPSULE)
+ PyObject *mod = PyImport_ImportModule("PyQt5.sip");
+ if (!mod)
+ {
+ PyErr_Print();
+ PySys_WriteStderr("---- ----- a\n");
+ return;
+ }
+ else
Expand All @@ -20,12 +19,3 @@ index 635d31e..7c501cf 100644
sip = (const sipAPIDef *)PyCapsule_Import("PyQt5.sip._C_API", 0);
#else
PyObject *c_api = getModuleAttr("PyQt5.sip", "_C_API");
@@ -424,5 +435,8 @@ void PyQt5QmlPlugin::getSipAPI()
#endif

if (!sip)
+ {
PyErr_Print();
+ PySys_WriteStderr("---- ----- b\n");
+ }
}

0 comments on commit 2494b3d

Please sign in to comment.