Skip to content

Cross-platform support for getting a home directory path#71

Open
suminb wants to merge 1 commit into
GerevAI:mainfrom
suminb:feature/home-directory
Open

Cross-platform support for getting a home directory path#71
suminb wants to merge 1 commit into
GerevAI:mainfrom
suminb:feature/home-directory

Conversation

@suminb

@suminb suminb commented Mar 28, 2023

Copy link
Copy Markdown

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.

@Roey7

Roey7 commented Mar 30, 2023

Copy link
Copy Markdown
Contributor

Have you tested that locally + inside a docker?

@yuvalsteuer

Copy link
Copy Markdown
Contributor

@suminb , hi have you tested this? could you screenshot a working example.

@suminb

suminb commented Apr 12, 2023

Copy link
Copy Markdown
Author

I haven't tested this inside a Docker. I'll show a screenshot when I test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants