def get_data(self, filename, urlbase):
    if (not os.path.isfile(filename)):
        if (OpenCVTests.dataPath is not None):
            candidate = ((OpenCVTests.dataPath + '/') + filename)
            if os.path.isfile(candidate):
                return candidate
        urllib.urlretrieve(((urlbase + '/') + filename), filename)
    return filename
def get_data(self, filename, urlbase):
    if (not os.path.isfile(filename)):
        if (OpenCVTests.dataPath is not None):
            candidate = ((OpenCVTests.dataPath + '/') + filename)
            if os.path.isfile(candidate):
                return candidate
        urllib.urlretrieve(((urlbase + '/') + filename), filename)
    return filename