From 02993c7a0c746d9f47f2a7c50273c76a5a7332cd Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 18 Jul 2020 15:46:00 +0200 Subject: 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. --- decoders/ir_irmp/irmp_library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'decoders/ir_irmp') 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): -- cgit v1.2.3-70-g09d2