Best way to store config or preferences in a multi-platform way.

Patrick Mullen saluk64007 at gmail.com
Thu May 1 13:44:13 EDT 2008


YAML is a joke if you expect a windows user to be able to hand edit the
data.  Windows users typically expect a .ini file in the application's
directory.  (Usually not the users home directory, even if that may be a
better location).  XML is ok, but .ini is much preferred.

If you have a configuration gui or whatever and the file doesn't need to be
hand edited, it doesn't really matter what format you store it in.  Sqlite
db would be fine in this case.  Still keep the file as a ".yourappname" file
in users home linux directory, and probably do as mentioned above and keep
it in their windows home directory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080501/1b7233ae/attachment-0001.html>


More information about the Python-list mailing list