Coverage for lutris.runners : 50%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Generic runner functions"""
"mednafen", "scummvm", "snes9x", "gens", "uae", "fsuae", "nulldc", "openmsx", "dosbox", "pcsxr", "atari800", "mupen64plus", "frotz", "browser", "osmose", "vice", "hatari", "stella", "jzintv", "o2em")
"""Dynamically import a runner class""" globals(), locals(), [runner_name], -1) logger.error("Invalid runner %s" % runner_name) raise
"""Return a runner task""" try: runner_module = __import__('lutris.runners.%s' % runner, globals(), locals(), [runner], -1) runner_task = getattr(runner_module, task) except ImportError: logger.error("Invalid runner %s" % runner) raise return runner_task |