From be93391b62b1575ad75db99bf25fef245b85f8b7 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Thu, 21 Apr 2016 01:33:49 +0200 Subject: Add common directory for shared modules. --- srd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'srd.c') 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(); -- cgit v1.2.3-70-g09d2