where is os.path.expanduser?

Kevin F neurogasm at gmail.com
Thu Mar 23 03:44:29 EST 2006


Peter Otten wrote:
> Kevin F wrote:
> 
>> where is this code looking for the .imap file?  I am on OSX and am not
>> sure where to put the file it is looking for.
>>
>>     f = open(os.path.expanduser('~/.imap'))
> 
> Your interactive interpreter has the answer
> 
>>>> import os
>>>> os.path.expanduser("~")
> '/home/peter'
> 
> that will most likely differ from the one given above.
> 
> Peter
thanks



More information about the Python-list mailing list