cross platform application configuration files

David Eppstein eppstein at ics.uci.edu
Fri Feb 28 14:24:35 EST 2003


In article <b3och6$1kl$1 at peabody.colorado.edu>,
 Fernando Perez <fperez528 at yahoo.com> 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                      http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science




More information about the Python-list mailing list