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

Package initialization made possible when executed in environments with... #2719

Merged
merged 1 commit into from Jan 13, 2014

Conversation

michs
Copy link
Contributor

@michs michs commented Jan 11, 2014

...out access to the home directory.

Functions _get_xdg_config_dir(), _get_xdg_cache_dir(), _get_config_or_cache_dir() allow now the use of the environment variables XDG_CONFIG_HOME resp. XDG_CACHE_HOME without requiring access to the home directory (f.ex. in batch jobs on clusters).

Before, the definitions of the environment variables would not have been used when the home directory was not accessible. Nevertheless, the standard does not bind the variable definitions to the existence of home directories (only the default values are defined with respect to them).

…ithout access to the home directory.

Functions _get_xdg_config_dir(), _get_xdg_cache_dir(), _get_config_or_cache_dir() allow now the use of the environment variables XDG_CONFIG_HOME resp. XDG_CACHE_HOME without requiring access to the home directory (f.ex. in batch jobs on clusters).

Before, the definitions of the environment variables would not have been used when the home directory was not accessible. Nevertheless, the standard does not bind the variable definitions to the existence of home directories (only the default values are defined with respect to them).
@michs
Copy link
Contributor Author

michs commented Jan 11, 2014

As discussed before in pull request #2695 I created a reduced variant that only addresses the issue of non-existing resp. non-accessible home directories during the matplotlib initialisation. The existing logic of using old configuration directories and overruling this by XDG_*_HOME environment variables on Linux is now retained.

It should be mentioned that the previous pull request had been marked with the 1.4.x milestone. Due to the closing it disappeared there.

tacaswell added a commit that referenced this pull request Jan 13, 2014
Package initialization made possible when executed in environments with...
@tacaswell tacaswell merged commit 0efcb84 into matplotlib:v1.3.x Jan 13, 2014
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 98439df on michs:xdg_home-config into * on matplotlib:v1.3.x*.

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.

None yet

3 participants