Closed Pebaz closed 5 years ago
@Pebaz It looks great! Thanks!
Edit: I borrowed the library loading code from one of the glfw python packages and made some small changes. :sweat_smile:
There's only one small detail: could you please replace the f-strings with str.format()
, so it works for py3.5 and earlier?
(Maybe pathlib
needs to be added to the dependencies...)
I made the suggested change. Thanks for reviewing! Also, pathlib
is included in the Python standard library so we should be good there.
Problem statement: Raylib cannot be used from REPL
Solution:
__file__
and__main__
paths and unify them into one check. This means that if the environment variableRAYLIB_BIN_PATH
is set, the user clearly wants to use the library in that location.pathlib.Path
to simplify code and improve clarity.__file__
and__main__
is done instead of two.