diff options
author | Bert Vermeulen <bert@biot.com> | 2016-04-21 01:33:49 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-04 19:34:47 +0200 |
commit | be93391b62b1575ad75db99bf25fef245b85f8b7 (patch) | |
tree | 2c6195b12949a3ecefae02a83ff7d8f6096ca50d /srd.c | |
parent | 30d775b095a4b76e5fa755b19d5521affa3c053c (diff) | |
download | libsigrokdecode-be93391b62b1575ad75db99bf25fef245b85f8b7.tar.gz libsigrokdecode-be93391b62b1575ad75db99bf25fef245b85f8b7.zip |
Add common directory for shared modules.
Diffstat (limited to 'srd.c')
-rw-r--r-- | srd.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -169,6 +169,12 @@ SRD_API int srd_init(const char *path) } } #ifdef DECODERS_DIR + /* Common modules for use by any decoder. */ + if ((ret = srd_decoder_searchpath_add(COMMON_DIR)) != SRD_OK) { + Py_Finalize(); + return ret; + } + /* Hardcoded decoders install location, if defined. */ if ((ret = srd_decoder_searchpath_add(DECODERS_DIR)) != SRD_OK) { Py_Finalize(); |