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

K.Weinert at gmx.net K.Weinert at gmx.net
Thu Apr 20 13:04:37 CEST 2006


Hi,
try

f=file(os.path.join(os.path.expanduser("~")),"myfile"), "r") 

Kind regards,
Karsten.

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl


More information about the Tutor mailing list