'Load history from a text file in user home directory'

def load_wdhistory(self, workdir=None):

    if osp.isfile(self.LOG_PATH):
        (wdhistory, _) = encoding.readlines(self.LOG_PATH)
        wdhistory = [name for name in wdhistory if os.path.isdir(name)]
    else:
        if (workdir is None):
            workdir = get_home_dir()
        wdhistory = [workdir]
    return wdhistory
