To get users home directory path in Python you can use the following snippet.
Sample Python
import os.path print os.path.expanduser('~')
All the Code Snippets and Samples you need
To get users home directory path in Python you can use the following snippet.
import os.path print os.path.expanduser('~')
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to get users home directory path in #Python http://t.co/8pq1rvHwiF #programming #dev