<div dir="ltr">Thanks Derek and Ben.<div><br></div><div>Ben's step (2) was the bit I was missing: $XDG_CONFIG_HOME/astropy/ instead of $XDG_CONFIG_HOME/.astropy/  I had been including the extra "." and thus not pre-creating the directory that it was looking for.  I confirm that it also works for me with that change.</div><div><br></div><div>Stephen</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 31, 2017 at 12:44 PM, Derek Homeier <span dir="ltr"><<a href="mailto:derek@astro.physik.uni-goettingen.de" target="_blank">derek@astro.physik.uni-goettingen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 31 Oct 2017, at 8:01 pm, Stephen Bailey <<a href="mailto:stephenbailey@lbl.gov">stephenbailey@lbl.gov</a>> wrote:<br>
><br>
> For the record: setting $XDG_CONFIG_HOME did not work but I don't know why.  It didn't create any .astropy/ config files in the new location, and when I moved my $HOME/.astropy out of the way, it still created a new $HOME/.astropy/config/ directory upon import even though $XDG_CONFIG_HOME was set to a different location.  I didn't try debugging beyond that.<br>
<br>
</span>Looking into astropy/config/paths.py, this should be $XDG_CONFIG_HOME/astropy ,<br>
and that directory has to already exist to be used as the config subdirectory - the docstring<br>
of get_config_dir() can be a little bit misleading in that respect.<br>
If setting $XDG_CONFIG_HOME should still be causing troubles and modifying your<br>
astropy installation is an option, you might also try to hack paths.py to have get_config_dir<br>
additionally search a third location.<br>
<br>
HTH,<br>
                                        Derek<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@python.org">AstroPy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/astropy</a><br>
</div></div></blockquote></div><br></div>