Posted By

scarfboy on 07/17/08


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Get Home directory path in Python (win, lin, other?)

 / Published in: Python

The current user's home directory is probably the easiest way to get a writeable directory, and expanduser does the sensible thing on various OSes.

In case of windows, you can choose to be smarter about which directory you pick.

Report this snippet  

You need to login to post a comment.