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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin F

    #1

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

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

    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.ex panduser('~/.imap'))


    p.s. anyone know where os.path.expandu ser opens up on OSX?
Working...