platform_library_candidates

platform_library_candidates(path, tag=None): 

Lists the file names that can stand in for the library path, most specific first. libfoo.so yields libfoo.<tag>.so (and libfoo.<tag>.dylib on macOS), then libfoo.so itself. This allows several binaries (e.g. a mac and a linux build) to live side by side in one folder.

  • path: str

    the plain library path

  • tag: str | None

    platform tag, platform_tag() by default

  • :returns: list[str]

    candidate paths


Feedback

Examples

Templates

Documentation