os.path.expanduser ... where is this?

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


    I have a code that opens an .imap file in os.path.expanduser.

Unfortunately, I am on OS X and have no idea where that directory is.

I am wondering how I can change this code to just open the .imap file in 
the directory where the code is saved.

f = open(os.path.expanduser('~/.imap'))


p.s. anyone know where os.path.expanduser opens up on OSX?



More information about the Python-list mailing list