def split(s):

    if ':' not in s: return '', s
    colon = 0
    for i in range(len(s)):
        if s[i] == ':': colon = i + 1
    path, file = s[:colon-1], s[colon:]
    if path and not ':' in path:
        path = path + ':'
    return path, file
Split a pathname into two parts: the directory leading up to the final
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/macpath.py/split