[Tutor] [Linux] open a file in any home "~" ?

Alan Gauld alan.gauld at freenet.co.uk
Thu Apr 20 02:17:34 CEST 2006


>  How can I do to access this file whatever the user is ?
>
> use os.path.expanduser(path)

Neat Wesley, I've  never noticed that one before.

Alan G.


More information about the Tutor mailing list