py get userpath code example
Example 1: python get username
import os
username = os.getlogin()
Example 2: python get user home directory
from pathlib import Path
home = str(Path.home())
import os
username = os.getlogin()
from pathlib import Path
home = str(Path.home())