python on Linux

Irmen de Jong irmen.NOSPAM at xs4all.nl
Fri Oct 10 03:48:33 EDT 2014


On 10-10-2014 8:58, Chris Angelico wrote:

> AIUI you can use os.path.expanduser() on Windows as well, and it'll
> take care of USERPROFILE.

Nice, didn't know that!
I've been using the appdirs module (https://pypi.python.org/pypi/appdirs/) as well to
avoid constructing paths manually altogether.

Irmen



More information about the Python-list mailing list