edbeeching / godot_rl_agents

An Open Source package that allows video game creators, AI researchers and hobbyists the opportunity to learn complex behaviors for their Non Player Characters or agents
MIT License
942 stars 69 forks source link

Fixed error in _set_platform_suffix #97

Closed AustereTriceratops closed 1 year ago

AustereTriceratops commented 1 year ago

convert_macos_path in core/utils.py expects a string of the filepath to be passed in, but when it's called in _launch_env the path is a pathlib.Path object. This happens because the method _set_platform_suffix overwrites the env_path string into a pathlib.Path object.

I'm updating the return statement of _set_platform_suffix to return a string instead.