ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
Re: [Tutor] [Linux] open a file in any home "~" ?
by K Weinert other posts by this author
Apr 20 2006 4:05AM messages near this date
Re: [Tutor] [Linux] open a file in any home "~" ? | Re: [Tutor] [Linux] open a file in any home "~" ?
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
Thread:
Learner404
Paidhi Aiji
K Weinert
Alan Gauld
Alan Gauld
W Chun
Learner404
W Chun
Matthew White

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved