Returns:

        str : Path to home directory (or ``Documents`` directory on Windows).

def home_dir():
    '''
    Returns:

        str : Path to home directory (or ``Documents`` directory on Windows).
    '''
    if os.name == 'nt':
        from win32com.shell import shell, shellcon

        return shell.SHGetFolderPath(0, shellcon.CSIDL_PERSONAL, 0, 0)
    else:
        return os.path.expanduser('~')