Skip to content Skip to sidebar Skip to footer

Getting Current User Home Directory On Os X?

How to find current user home directory on OS X? HOME environmental variable is not always set, for example when you do not run in console (GUI apps). For this reason I'm looking f

Solution 1:

It looks that os.path.expanduser("~") always returns the home directory, even on Windows.


Post a Comment for "Getting Current User Home Directory On Os X?"