]> sigrok.org Git - libsigrokdecode.git/commit - decoder.c
srd_decoder_load_all_path: Support zipimport paths
authorMarcus Comstedt <redacted>
Sun, 6 Jul 2014 23:36:22 +0000 (01:36 +0200)
committerUwe Hermann <redacted>
Sun, 12 Jul 2015 15:25:10 +0000 (17:25 +0200)
commit430c4ea018abb0891263550deca1d706cebf681d
treebfd33bd3573bfd1bac2757a0cebc2e433b119dfb
parent76a83a335197b54fe9974ba0acc0e333ab57111f
srd_decoder_load_all_path: Support zipimport paths

srd_decoder_load() works perfectly with decoders stored inside zip files.
However, srd_decoder_load_all{_path,}() did not, because it assumed that
normal directory listings can be used to enumerate decoders, which is not
the case for zipped decoders.  Fix this by providing a fallback based on
the zipimporter Python class.
decoder.c