Skip to content

Commit

Permalink
Fix unable to run if SHLIB_SUFFIX is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Mar 1, 2024
1 parent 32a546f commit 9ca3efe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rlottie_python/rlottie_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def _load_lib(self, rlottie_lib_path: Optional[str] = None):

return None

lib_suffixes = [sysconfig.get_config_var("SHLIB_SUFFIX")]
lib_suffixes: "list[str]" = []
shlib_suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
if isinstance(str, shlib_suffix):
lib_suffixes.append(shlib_suffix)
if sys.platform.startswith(("win32", "cygwin", "msys", "os2")):
lib_prefixes = ("", "lib")
elif sys.platform.startswith("darwin"):
Expand Down

0 comments on commit 9ca3efe

Please sign in to comment.