facebookresearch / mbrl-lib

Library for Model Based RL
MIT License
952 stars 154 forks source link

changed path handling to be OS agnostic #153

Closed MarcoKe closed 2 years ago

MarcoKe commented 2 years ago

Types of changes

Motivation and Context / Related issue

Since Windows uses backslashes instead of forwardslashes, replacing parts of a path based on forwardslashes resulted in an error under Windows.

https://github.com/facebookresearch/mbrl-lib/issues/152

How Has This Been Tested (if it applies)

The changes were manually tested using Windows 10 and a VM with Ubuntu 20.04.

The test suite was executed using pytest and no new errors were found.

Checklist

luisenp commented 2 years ago

Hi @MarcoKe. Can you rebase on top of the latest changes to main? I fixed some import issues that are causing CI to fail. After that, we are good to merge. Thanks!

MarcoKe commented 2 years ago

Hi @MarcoKe. Can you rebase on top of the latest changes to main? I fixed some import issues that are causing CI to fail. After that, we are good to merge. Thanks!

Done. I also removed the unnecessary wrap in a Path object.

luisenp commented 2 years ago

Merging now, thanks a lot of the contribution, @MarcoKe!