def METHOD_NAME(pth):
    """
    If the path is not absolute, guess that it is a subdirectory of the
    user's home directory.
    :param str pth: The pathname of the directory where files of tweets should be written
    """
    if os.path.isabs(pth):
        return pth
    else:
        return os.path.expanduser(os.path.join("~", pth))