Mark Roseman added the comment:

Further to Terry's backwards compatibility issues (also discussed in #8231).

Storing things in the "correct" location (%APPDATA% on Windows, and Application 
Support on OS X) would presumably be the "right" thing to do if backwards 
compatibility weren't an issue.  

If "APPDATA" is the "correct" place, and "HOME" is what we've been using now, 
consider a solution like this:

- check if prefs exist in APPDATA; if so, use that
- check if prefs exist in HOME; if so, use that
- if neither, create prefs in APPDATA

This handles the common cases of existing user upgrading to new scheme (things 
stay stored in old location), new user upgrading to newer versions in future 
(things go in new place), but fails on the case of user starts with new version 
and then later uses an older version (results in two separate preferences, one 
used by newer versions, one used by older).

I think it's a legitimate question as to whether that latter case is common 
enough or problematic enough to worry about it (given "fails" doesn't break 
anything).

----------
nosy: +markroseman

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24765>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to