]> sigrok.org Git - libsigrokdecode.git/commit
srd_decoder_load_all_path: Support zipimport paths
authorMarcus Comstedt <redacted>
Sun, 6 Jul 2014 23:36:22 +0000 (01:36 +0200)
committerBert Vermeulen <redacted>
Tue, 8 Jul 2014 13:35:14 +0000 (15:35 +0200)
commit6a0341595610c9d14d4121bb8fa82ab7eeb03693
tree223b6ba136bdaf5766e007120ea96989e09d837a
parent37b0da68d021530012f17e86b4754d109977ba76
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