Why doesn't astropy use ~/.config/astropy by default (on Unix-like systems)?
See original GitHub issueIf $XDG_CONFIG_HOME
is set, astropy will look for configuration files in $XDG_CONFIG_HOME/astropy/
. However, it will not look for configuration files in $XDG_CONFIG_HOME/astropy/config/
. Similarly, if $XDG_CACHE_HOME
is set, astropy will look for cache files in $XDG_CACHE_HOME/astropy/
, not $XDG_CACHE_HOME/astropy/cache
. Why does the layout of $XDG_CONFIG_HOME/astropy/
have to be different from the layout of $HOME/.astropy/
, which contains config/
and cache/
directories? Unless one knows that the layout is different, one would expect that $XDG_CONFIG_HOME/astropy/config/
and $XDG_CACHE_HOME/astropy/cache/
would be the directories to contain configuration and cache files.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Configuration System (astropy.config)
The astropy configuration system is designed to give users control of various parameters used in astropy or affiliated packages without delving into the...
Read more >Source code for astropy.config.paths
Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module contains functions to determine where configuration and data/cache files used ......
Read more >Astropy's Default Configuration File
Astropy's Default Configuration File¶. ## When True, use Unicode characters when outputting values, and displaying ## widgets at the console.
Read more >Source code for astropy.config.configuration
[docs]class InvalidConfigurationItemWarning(AstropyWarning): """A Warning that is issued when the configuration value specified in the astropy configuration ...
Read more >Configuration system (astropy.config)
If for whatever reason your $HOME/.astropy directory is not accessible (i.e., you have astropy running somehow as root but you are not the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I agree it’s not easy, but this bug should be fixed which is why I don’t want to close it. 😄
We should absolutely do #8245 and I am -1 on closing this as wont-fix.