gerev
gerev copied to clipboard
Cross-platform support for getting a home directory path
Although GerevAI is most likely going to be running on a Linux environment, it would still be nice to be able to run it on other environments such as macOS or Windows for development and/or testing purposes. This can be achieved by simply replacing /home/{os.getlogin() with Path.home(). I've noticed pathlib.Path is already in use, so we might as well use it to get the home directory path for the current user.
Have you tested that locally + inside a docker?
@suminb , hi have you tested this? could you screenshot a working example.
I haven't tested this inside a Docker. I'll show a screenshot when I test it.