def path_complete(text, state):
    if '~' in text:
        if text == '~':
            text += '/'
        text = os.path.expanduser(text)
    return (glob.glob(text+'*')+[None])[state]
dataset/ETHPy150Open sodastsai/taskr/taskr/terminal.py/path_complete/original