def resolve_target(target):
    if target.endswith('.py'):
        if os.path.exists(target):
            config = ginkgo.settings.load_file(target)
            try:
                return config['service']
            except __HOLE__:
                raise RuntimeError(
                    "Configuration does not specify a service factory")
        else:
            raise RuntimeError(
                'Configuration file %s does not exist' % target)
    else:
        return target
dataset/ETHPy150Open progrium/ginkgo/ginkgo/runner.py/resolve_target