Get the users home directory





9
Date Submitted Fri. Aug. 18th, 2006 11:06 AM
Revision 1 of 1
Scripter ASmith
Tags python
Comments 1 comments
Quick way to get the users home directory in Unix/Linux and Windows

###
Description:
  Get Users Home Directory
  Works on windows as well
URL: http://sebsauvage.net/python/snyppets/index.html
License: Unspecified/Public Domain
###

import os.path
print os.path.expanduser('~')
 

Comments

Comments privileges ?
Mon. Aug. 21st, 2006 3:19 AM    Syntax Master sundaramkumar

Voting