libsigrok/bindings/python/sigrok/core
Alexandru Gagniuc aae2273b99 bindings/python: Handle import failures without crashing
When the import of gi.repository.GLib failed, we would get a NULL
pointer that we passed along without any checking. In this situation,
the entire program would crash with a segmentation fault, and no
message to indicate the problem.

When the import fails, abort the SWIG init and print a message. The
Python interpreter then prints out a backtrace, which can be useful
in tracking down the problem.
2015-06-16 13:04:24 +02:00
..
__init__.py Remove obsolete low-level language bindings. 2014-07-18 21:34:57 +01:00
classes.i bindings/python: Handle import failures without crashing 2015-06-16 13:04:24 +02:00