def splitpath(path):
    try:
        match = splitrx.match(path).groups()
        if match[-1] is None:
            match = match[:-1] + ("",)
        return match
    except __HOLE__:
        pass
dataset/ETHPy150Open mikar/demimove/demimove/helpers.py/splitpath