libsigrok/bindings/python/sigrok
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
..
core bindings/python: Handle import failures without crashing 2015-06-16 13:04:24 +02:00
__init__.py GPL headers: Use correct project name. 2013-04-23 22:24:30 +02:00