os.Path.homeDir

Returns the path to the HOME directory of the current user.

Syntax

os.Path.homeDir()
  RETURNS STRING

Usage

This function returns the home directory of the current user.