question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why doesn't astropy use ~/.config/astropy by default (on Unix-like systems)?

See original GitHub issue

If $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:open
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Cadaircommented, Mar 30, 2020

I agree it’s not easy, but this bug should be fixed which is why I don’t want to close it. 😄

1reaction
Cadaircommented, Mar 30, 2020

We should absolutely do #8245 and I am -1 on closing this as wont-fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found