def cmd_cd(*args):
    if args[0][1] == '~':
        args[0][1] = os.path.expanduser(args[0][1])
    os.chdir(args[0][1])
    return cmd_pwd()
dataset/ETHPy150Open ueg1990/twilix/twilix/cmd.py/cmd_cd/original