def run_goglib_setup_script(self, game_name):
self.progressbar_goglib.set_text(_("Executing script..."))
self.set_environ(game_name, self.goglib_download_dir, self.goglib_install_dir)
command = [data_dir + '/scripts/goglib/' + game_name + '/setup']
goglib_name_to_pid_install_dict[game_name], stdin, stdout, stderr = GLib.spawn_async(command,
flags=GLib.SpawnFlags.SEARCH_PATH|GLib.SpawnFlags.DO_NOT_REAP_CHILD,
standard_output=True,
standard_error=True)
io = GLib.IOChannel(stdout)
self.source_id_out = io.add_watch(GLib.IO_IN|GLib.IO_HUP,
self.watch_process,
'run_goglib_setup_script',
priority=GLib.PRIORITY_HIGH)
评论列表
文章目录