ahupp / python-magic

A python wrapper for libmagic
Other
2.59k stars 280 forks source link

loader.py: Separate functions for each operating system #329

Closed cclauss closed 3 months ago

cclauss commented 3 months ago

Separate functions for each operating system.

+ def _lib_candidates_linux():
+     """Yield possible libmagic library names on Linux."""
+
+ def _lib_candidates_macos():
+     """Yield possible libmagic library names on macOS."""
+
+ def _lib_candidates_windows():
+     """Yield possible libmagic library names on Windows."""

Related to:

ahupp commented 3 months ago

Seems reasonable, thanks!