py get user path code example
Example 1: python get username
import os
username = os.getlogin()
Example 2: python get user home directory
from os.path import expanduser
home = expanduser("~")
import os
username = os.getlogin()
from os.path import expanduser
home = expanduser("~")