Skip to content

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

Merged
maxnoe merged 1 commit into
masterfrom
fix/better_home_dir
Dec 7, 2022
Merged

Don't use $HOME, use Path.home() instead#2155
maxnoe merged 1 commit into
masterfrom
fix/better_home_dir

Conversation

@kosack
Copy link
Copy Markdown
Member

@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
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
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