def getstartpath(pathlist, pathstr):
    for path in pathlist:
        if (os.path.join(pathstr, '')).startswith(path):
            return path
    return ''
return the path from pathlist that is the first part of pathstr
dataset/ETHPy150Open FredHutch/swift-commander/swift_commander/swsymlinks.py/getstartpath