-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
XDG_CONFIG_HOME failing silently caused confusion #6511
Comments
You mean |
Not exactly. What actually happen was export XDG_CONFIG_HOME=/some/nondefault/dir/astropy but the correct command should have been export XDG_CONFIG_HOME=/some/nondefault/dir |
That would help too. Not creating that first also caused silent default-ing and confusion. |
Sure. But that was not the source of the problem reported. |
Exactly
No indeed, but that was just to explain the effect of changing |
For more background, the affected party was a very specific pipeline workhorse. So, other software config files are not really an issue there. Setting |
If #10090 is accepted, then this won't really be an issue anymore because there will be a workaround. |
I ran into a group who would have benefited from #5899. However, since that is not yet possible, they tried to set two different directories for different versions of Astropy to run in parallel on the same file system on the same cluster. Otherwise, they run into a problem of
astropy.cfg
getting corrupted by the parallel attempts to write it.Despite instructions at http://astropy.readthedocs.io/en/latest/config/index.html that says, "... if you’ve set the environment variable
XDG_CONFIG_HOME
and the$XDG_CONFIG_HOME/astropy
directory exists, it will instead be there," they setXDG_CONFIG_HOME
that included the "astropy" sub-directory. As a result, the check for$XDG_CONFIG_HOME/astropy
failed (because it was really looking for$XDG_CONFIG_HOME/astropy/astropy
) and fell back silently to the default~/.astropy/config
, which caused a lot of confusion.Suggestion: If
XDG_CONFIG_HOME
is defined but the desired directory is not found, raise an exception (too much?) or at least emit a warning.The text was updated successfully, but these errors were encountered: