summaryrefslogtreecommitdiff
path: root/srd.c
diff options
context:
space:
mode:
Diffstat (limited to 'srd.c')
-rw-r--r--srd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/srd.c b/srd.c
index 2947ca8..c74d2de 100644
--- a/srd.c
+++ b/srd.c
@@ -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();