diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 15:46:00 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 15:48:50 +0200 |
commit | 02993c7a0c746d9f47f2a7c50273c76a5a7332cd (patch) | |
tree | 8de6ecdfba8170d60fc571cbf8f1fae79722911d /decoders | |
parent | 31b646e2ba4c767f14e4be764f0c7f42f2b49a51 (diff) | |
download | libsigrokdecode-02993c7a0c746d9f47f2a7c50273c76a5a7332cd.tar.gz libsigrokdecode-02993c7a0c746d9f47f2a7c50273c76a5a7332cd.zip |
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<stem>.dylib' filename scheme.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/ir_irmp/irmp_library.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |