From: Gerhard Sittig Date: Sat, 18 Jul 2020 13:46:00 +0000 (+0200) Subject: irmp: add 'Darwin' case for DLL filename lookup X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=02993c7a0c746d9f47f2a7c50273c76a5a7332cd irmp: add 'Darwin' case for DLL filename lookup Detect the MacOS platform by checking for 'Darwin' with the Python platform(3) module, and use the 'lib.dylib' filename scheme. --- diff --git a/decoders/ir_irmp/irmp_library.py b/decoders/ir_irmp/irmp_library.py index 3bd9048..22a74b0 100644 --- a/decoders/ir_irmp/irmp_library.py +++ b/decoders/ir_irmp/irmp_library.py @@ -49,7 +49,8 @@ class IrmpLibrary: if platform.uname()[0] == 'Linux': return 'libirmp.so' - # TODO Add support for more platforms. + if platform.uname()[0] == 'Darwin': + return 'libirmp.dylib' return 'irmp.dll' def __init__(self):