Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> In Linux, config files should go into:
>
> ~/.<appname>/ or /etc/<appname>/
>
> In Windows (which versions?) then should go into the Documents And
> Settings folder, where ever that is.
>
> There's no single string which can represent both of these conventions!
The first of those should do nicely for both Linux and Windows:
>>> os.path.normpath(os.path.expanduser('~/.appname'))
'C:\\Documents and Settings\\Duncan\\.appname'
--
http://mail.python.org/mailman/listinfo/python-list