def check_core_dependency(lines, component):
    if (component != 'openspace_core'):
        return ''
    index = [i for (i, s) in enumerate(lines) if ('OPENSPACE_MODULE_' in s)]
    if (len(index) > 0):
        return lines[index[0]][:(- 1)]
    else:
        return ''
def check_core_dependency(lines, component):
    if (component != 'openspace_core'):
        return 
    index = [i for (i, s) in enumerate(lines) if ('OPENSPACE_MODULE_' in s)]
    if (len(index) > 0):
        return lines[index[0]][:(- 1)]
    else:
        return 