def findRelPath()

in scripts/cronjobs/urlutils.py [0:0]


def findRelPath(relpath):
    for d in ['./','../','../../']: # we may located at same level or 1 or 2 below
        dir = join(d,relpath)
        if os.path.isdir(dir):
            return dir
    raise OSError("Cannot find path " + path)