def _get_system_config(systemconfig, datadir):
    f = _get_system_configfile(systemconfig, datadir)
    with open(f) as in_handle:
        config = yaml.load(in_handle)
    if "galaxy_config" not in config:
        config["galaxy_config"] = os.path.join(os.path.dirname(f), "universe_wsgi.ini")
    return config
Initializes an instance of the DiscoveryService.
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/docker/run.py/_get_system_config--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/dev_appserver_apiserver.py/DiscoveryService.__init__