コード例 #1
0
def load_consoles(emulators, filesystem, override = None):
  path = settings_file_path('consoles.txt', filesystem, override)
  logger.debug("Loading consoles from path: %s" % path)
  return BackedObjectManager(
    ConfigFileBackingStore(path),
    ConsoleBackedObjectAdapter(emulators)
  )
コード例 #2
0
def load_emulators(filesystem, override = None):
  path = settings_file_path('emulators.txt', filesystem, override)
  logger.debug("Loading emulators from path: %s" % path)
  return BackedObjectManager(
    ConfigFileBackingStore(path),
    EmulatorBackedObjectAdapter(filesystem)
  )
コード例 #3
0
ファイル: settings.py プロジェクト: gordonshieh/Ice
def load_configuration(filesystem, override=None):
    path = settings_file_path('config.txt', filesystem, override)
    logger.debug("Loading config from path: %s" % path)
    return configuration.from_store(ConfigFileBackingStore(path))