Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use $HOME, use Path.home() instead #2155

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Conversation

kosack
Copy link
Contributor

@kosack kosack commented Dec 7, 2022

We look for the envvar HOME to get the cache directory, but really should just call Path.home()

Copy link
Member

@maxnoe maxnoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

To be sure: that's just cosmetics, right? HOME does also exist on Windows, or not?

@kosack
Copy link
Contributor Author

kosack commented Dec 7, 2022

HOME doesn't exist on windows. Though I'm sure there are other problems with PATH on windows, this should at least fix a minor one

Copy link
Contributor

@nbiederbeck nbiederbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should even work on windows, as it is basically calling os.path.expanduser('~')

@maxnoe maxnoe merged commit 9d337b2 into master Dec 7, 2022
@maxnoe maxnoe deleted the fix/better_home_dir branch December 7, 2022 13:42
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