cross platform application configuration files

David Eppstein eppstein at
Fri Feb 28 20:24:35 CET 2003

In article <b3och6$1kl$1 at>,
 Fernando Perez <fperez528 at> wrote:

> You may find the code below useful.  That's what I use to find what '~'
> would be in a reasonably portable manner so my code doesn't barf completely
> under windows if it has to run there.
>     Currently only Posix and NT are implemented, a HomeDirError exception is
>     raised for all other OSes. """ #'

For what it's worth, this works as-is with the command-line OS X python
(counts as posix for this code's purposes).

David Eppstein            
Univ. of California, Irvine, School of Information & Computer Science

More information about the Python-list mailing list