Esempio n. 1
0
 def execute_command(command):
     """Execute an arbitrary command in a Lutris context
     with the runtime enabled and monitored by a MonitoredCommand
     """
     logger.info("Running command '%s'", command)
     monitored_command = exec_command(command)
     try:
         GLib.MainLoop().run()
     except KeyboardInterrupt:
         monitored_command.stop()
Esempio n. 2
0
 def execute_command(command):
     """Execute an arbitrary command in a Lutris context
     with the runtime enabled and monitored by a MonitoredCommand
     """
     logger.info("Running command '%s'", command)
     monitored_command = exec_command(command)
     try:
         GLib.MainLoop().run()
     except KeyboardInterrupt:
         monitored_command.stop()