overdev / raylib-py

A Python binding for the great C library raylib.
Other
185 stars 20 forks source link

Shared object import improvements #30

Closed adamlwgriffiths closed 3 years ago

adamlwgriffiths commented 3 years ago

The current git release has a hard-coded filename for the raylib shared object.

This has 2 issues:

  1. It is hard coded to the 2.0.0 shared object (which is an old release).
  2. It doesn't attempt to try other filenames should it fail (x-2.0.0, x-2, x).

This makes it very difficult for the RAYLIB_BIN_PATH environment variable to function on systems that don't have Raylib 2.0.0.

raylib-python-cffi has implemented this logic which should work here.

adamlwgriffiths commented 3 years ago

Ok, I can see that the raylibpy-3.7 branch has updated the filenames to match the released binaries names, which fixes this issue. But it breaks non-windows library loading.